We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76a67e3 commit 6d06978Copy full SHA for 6d06978
drivers/iio/adc/ad7380.c
@@ -909,8 +909,7 @@ struct ad7380_state {
909
* Make the buffer large enough for MAX_NUM_CHANNELS 32-bit samples and
910
* one 64-bit aligned 64-bit timestamp.
911
*/
912
- u8 scan_data[ALIGN(MAX_NUM_CHANNELS * sizeof(u32), sizeof(s64))
913
- + sizeof(s64)] __aligned(IIO_DMA_MINALIGN);
+ IIO_DECLARE_DMA_BUFFER_WITH_TS(u8, scan_data, MAX_NUM_CHANNELS * sizeof(u32));
914
/* buffers for reading/writing registers */
915
u16 tx;
916
u16 rx;
0 commit comments