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