diff options
| author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-12-15 18:28:59 +0000 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-12-28 14:28:15 +0000 |
| commit | a801016da0bbb955acf1a551584790e3816bb4db (patch) | |
| tree | 8349baaa30d2b81a39f1f225335e04c3ff0494a4 /drivers/iio/light/ltr501.c | |
| parent | iio: magnetometer: Use aligned_s64 instead of open coding alignment. (diff) | |
| download | linux-a801016da0bbb955acf1a551584790e3816bb4db.tar.gz linux-a801016da0bbb955acf1a551584790e3816bb4db.zip | |
iio: light: Use aligned_s64 instead of open coding alignment.
Use this new type to both slightly simplify the code and avoid
confusing static analysis tools. Mostly this series is about consistency
to avoid this code pattern getting copied into more drivers.
Acked-By: Matti Vaittinen <mazziesaccount@gmail.com> #For bu27034, rpr0521
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20241215182912.481706-9-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/light/ltr501.c')
| -rw-r--r-- | drivers/iio/light/ltr501.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/ltr501.c b/drivers/iio/light/ltr501.c index 604f5f900a2e..669da0840eba 100644 --- a/drivers/iio/light/ltr501.c +++ b/drivers/iio/light/ltr501.c @@ -1280,7 +1280,7 @@ static irqreturn_t ltr501_trigger_handler(int irq, void *p) struct ltr501_data *data = iio_priv(indio_dev); struct { u16 channels[3]; - s64 ts __aligned(8); + aligned_s64 ts; } scan; __le16 als_buf[2]; u8 mask = 0; |
