From e905b3dd3a735bda21ac09f24ed542d72aad942e Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 11 Jun 2025 16:33:04 -0500 Subject: [PATCH] iio: amplifiers: ada4250: move offset_uv in struct Move offset_uv in struct ada4250_state. This keeps things logically grouped and reduces holes in the struct. Signed-off-by: David Lechner Reviewed-by: Andy Shevchenko Link: https://patch.msgid.link/20250611-iio-amplifiers-ada4250-simplify-data-buffer-in-init-v3-4-bf85ddea79f2@baylibre.com Signed-off-by: Jonathan Cameron --- drivers/iio/amplifiers/ada4250.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/amplifiers/ada4250.c b/drivers/iio/amplifiers/ada4250.c index c367c53a075b2..d20ca410c5062 100644 --- a/drivers/iio/amplifiers/ada4250.c +++ b/drivers/iio/amplifiers/ada4250.c @@ -59,9 +59,9 @@ struct ada4250_state { /* Protect against concurrent accesses to the device and data content */ struct mutex lock; int avdd_uv; + int offset_uv; u8 bias; u8 gain; - int offset_uv; bool refbuf_en; __le16 reg_val_16 __aligned(IIO_DMA_MINALIGN); }; -- 2.47.3