Skip to content

Commit 5097eaa

Browse files
committed
iio: adc: dln2: Use aligned_s64 for timestamp
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>
1 parent 1bb9422 commit 5097eaa

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
@@ -466,7 +466,7 @@ static irqreturn_t dln2_adc_trigger_h(int irq, void *p)
466466
struct iio_dev *indio_dev = pf->indio_dev;
467467
struct {
468468
__le16 values[DLN2_ADC_MAX_CHANNELS];
469-
int64_t timestamp_space;
469+
aligned_s64 timestamp_space;
470470
} data;
471471
struct dln2_adc_get_all_vals dev_data;
472472
struct dln2_adc *dln2 = iio_priv(indio_dev);

0 commit comments

Comments
 (0)