]> www.infradead.org Git - users/willy/xarray.git/commit
iio: pressure: mprls0025pa: use aligned_s64 for timestamp
authorDavid Lechner <dlechner@baylibre.com>
Fri, 18 Apr 2025 16:17:14 +0000 (11:17 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 21 Apr 2025 10:51:48 +0000 (11:51 +0100)
commitffcd19e9f4cca0c8f9e23e88f968711acefbb37b
treeb792de47cc61deb43948fde538ba230b83df574c
parente4570f4bb231f01e32d44fd38841665f340d6914
iio: pressure: mprls0025pa: use aligned_s64 for timestamp

Follow the pattern of other drivers and use aligned_s64 for the
timestamp. This will ensure the struct itself it also 8-byte aligned.

While touching this, convert struct mpr_chan to an anonymous struct
to consolidate the code a bit to make it easier for future readers.

Fixes: 713337d9143e ("iio: pressure: Honeywell mprls0025pa pressure sensor")
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250418-iio-more-timestamp-alignment-v2-2-d6a5d2b1c9fe@baylibre.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/mprls0025pa.h