]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iio: light: stk3310: Replace uint32_t with u32 and reorder members to eliminate padding
authorMiao Li <limiao@kylinos.cn>
Mon, 4 May 2026 03:04:07 +0000 (11:04 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:33 +0000 (10:59 +0100)
Replace the uint32_t type members in struct stk3310_data with u32
to adhere to the unified kernel coding style, and reorder the member
variables to eliminate memory padding holes.

Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Miao Li <limiao@kylinos.cn>
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/stk3310.c

index 21118b7467894374b20eb2e988a8294277ea0ada..fb3d9821edeeb0a1c67f1b1f0c837e3806ea5685 100644 (file)
@@ -128,12 +128,6 @@ static const int stk3310_it_table[][2] = {
 struct stk3310_data {
        struct i2c_client *client;
        struct mutex lock;
-       bool als_enabled;
-       bool ps_enabled;
-       bool ps_int_enabled;
-       uint32_t ps_thdl;
-       uint32_t ps_thdh;
-       uint32_t ps_near_level;
        u64 timestamp;
        struct regmap *regmap;
        struct regmap_field *reg_state;
@@ -144,6 +138,12 @@ struct stk3310_data {
        struct regmap_field *reg_int_ps;
        struct regmap_field *reg_flag_psint;
        struct regmap_field *reg_flag_nf;
+       u32 ps_thdl;
+       u32 ps_thdh;
+       u32 ps_near_level;
+       bool als_enabled;
+       bool ps_enabled;
+       bool ps_int_enabled;
 };
 
 static const struct iio_event_spec stk3310_events[] = {