]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: amplifiers: ada4250: move offset_uv in struct
authorDavid Lechner <dlechner@baylibre.com>
Wed, 11 Jun 2025 21:33:04 +0000 (16:33 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 26 Jun 2025 18:32:55 +0000 (19:32 +0100)
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>
drivers/iio/amplifiers/ada4250.c

index c367c53a075b26327a221e0c3a9dc8e788891f32..d20ca410c506226fce7f172632d46b2ebb140a12 100644 (file)
@@ -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);
 };