iio: adc: ad_sigma_delta: use sizeof() in ALIGN()
authorDavid Lechner <dlechner@baylibre.com>
Tue, 1 Jul 2025 21:37:52 +0000 (16:37 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Jul 2025 14:36:25 +0000 (15:36 +0100)
commit1a913da6cfda0139bfe1fe203858d5ba30ac853d
tree1eaf98008ff347c3cb38e67969e045c3ab283c8e
parent11d58620dfd0c52b0c49b04d28707c7a5a2d00ae
iio: adc: ad_sigma_delta: use sizeof() in ALIGN()

Use sizeof() instead of hardcoding the size of the timestamp in the
ALIGN() macro. This makes it a bit more obvious what the intention of
the code is.

Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250701-iio-adc-ad7173-add-spi-offload-support-v3-4-42abb83e3dac@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad_sigma_delta.c