From: Miao Li Date: Mon, 4 May 2026 03:04:07 +0000 (+0800) Subject: iio: light: stk3310: Replace uint32_t with u32 and reorder members to eliminate padding X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac4129478a2416eecdb09e78f7d7b5d7286b9ac6;p=thirdparty%2Flinux.git iio: light: stk3310: Replace uint32_t with u32 and reorder members to eliminate padding 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 Signed-off-by: Miao Li Reviewed-by: Joshua Crofts Reviewed-by: Andy Shevchenko Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/light/stk3310.c b/drivers/iio/light/stk3310.c index 21118b7467894..fb3d9821edeeb 100644 --- a/drivers/iio/light/stk3310.c +++ b/drivers/iio/light/stk3310.c @@ -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[] = {