[PATCH v4 0/3] iio: light: stk3310: Fix PS interrupt after suspend and clean up code style

Miao Li posted 3 patches 1 month, 1 week ago
drivers/iio/light/stk3310.c | 84 ++++++++++++++++++++++++++++++++-----
1 file changed, 73 insertions(+), 11 deletions(-)
[PATCH v4 0/3] iio: light: stk3310: Fix PS interrupt after suspend and clean up code style
Posted by Miao Li 1 month, 1 week ago
From: Miao Li <limiao@kylinos.cn>

This patch series addresses an interrupt issue and does two code cleanups
for the stk3310 driver.

Patch 1 fixes a PS interrupt issue where the interrupt cannot be triggered
normally after waking from suspend/hibernation, discovered on the Inspur
HS326 laptop with HiSilicon M900 processor.

Patch 2 replaces uint32_t with u32 and reorders members of struct
stk3310_data to eliminate memory padding holes, improving code
consistency and efficiency.

Patch 3 replaces hardcoded count parameters with sizeof(buf) in
regmap_bulk_read/write calls to improve code maintainability.

Miao Li (3):
  iio: light: stk3310: Deal with the ps interrupt issue in PM
  iio: light: stk3310: Replace uint32_t with u32 and reorder members to
    eliminate padding
  iio: light: stk3310: Use sizeof() for regmap_bulk_read/write count
    parameter

 drivers/iio/light/stk3310.c | 84 ++++++++++++++++++++++++++++++++-----
 1 file changed, 73 insertions(+), 11 deletions(-)

Best regards.
-- 
2.25.1