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 <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>
This commit is contained in:
Miao Li 2026-05-04 11:04:07 +08:00 committed by Jonathan Cameron
parent 9c1d639e90
commit ac4129478a

View 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[] = {