Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250611-iio-amplifiers-ada4250-simplify-data-buffer-in-init-v3-4-bf85ddea79f2@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

David Lechner and committed by
Jonathan Cameron
e905b3dd 3712f11b

+1 -1
+1 -1
drivers/iio/amplifiers/ada4250.c
··· 59 59 /* Protect against concurrent accesses to the device and data content */ 60 60 struct mutex lock; 61 61 int avdd_uv; 62 + int offset_uv; 62 63 u8 bias; 63 64 u8 gain; 64 - int offset_uv; 65 65 bool refbuf_en; 66 66 __le16 reg_val_16 __aligned(IIO_DMA_MINALIGN); 67 67 };