Skip to content

Commit fc0d822

Browse files
jic23gregkh
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>
1 parent aaf865d commit fc0d822

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

0 commit comments

Comments
 (0)