Skip to content

Commit 4993ada

Browse files
jic23jfvogel
authored andcommitted
iio: adc: dln2: Use aligned_s64 for timestamp
[ Upstream commit 5097eaa ] Here the lack of marking allows the overall structure to not be sufficiently aligned resulting in misplacement of the timestamp in iio_push_to_buffers_with_timestamp(). Use aligned_s64 to force the alignment on all architectures. Fixes: 7c0299e ("iio: adc: Add support for DLN2 ADC") Reported-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Reviewed-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20250413103443.2420727-4-jic23@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Sasha Levin <sashal@kernel.org> (cherry picked from commit fb98c9e584f4a1038e399cc331bff24700dd03ad) Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
1 parent c0fb5c3 commit 4993ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/dln2-adc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ static irqreturn_t dln2_adc_trigger_h(int irq, void *p)
481481
struct iio_dev *indio_dev = pf->indio_dev;
482482
struct {
483483
__le16 values[DLN2_ADC_MAX_CHANNELS];
484-
int64_t timestamp_space;
484+
aligned_s64 timestamp_space;
485485
} data;
486486
struct dln2_adc_get_all_vals dev_data;
487487
struct dln2_adc *dln2 = iio_priv(indio_dev);

0 commit comments

Comments
 (0)