| 96a59e30 | 31-Oct-2024 |
Julien Stephan <[email protected]> |
iio: imu: bmi323: use bool for event state
Since the write_event_config callback now uses a bool for the state parameter, update the signatures of the functions it calls accordingly.
Signed-off-by:
iio: imu: bmi323: use bool for event state
Since the write_event_config callback now uses a bool for the state parameter, update the signatures of the functions it calls accordingly.
Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/20241031-iio-fix-write-event-config-signature-v2-10-2bcacbb517a2@baylibre.com Signed-off-by: Jonathan Cameron <[email protected]>
show more ...
|
| 50161b27 | 16-Sep-2024 |
Dan Carpenter <[email protected]> |
iio: bmi323: fix reversed if statement in bmi323_core_runtime_resume()
This reversed if statement means that the function just returns success without writing to the registers.
Fixes: 16531118ba63
iio: bmi323: fix reversed if statement in bmi323_core_runtime_resume()
This reversed if statement means that the function just returns success without writing to the registers.
Fixes: 16531118ba63 ("iio: bmi323: peripheral in lowest power state on suspend") Signed-off-by: Dan Carpenter <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
show more ...
|
| 506a1ac4 | 16-Sep-2024 |
Dan Carpenter <[email protected]> |
iio: bmi323: fix copy and paste bugs in suspend resume
This code is using bmi323_reg_savestate[] and ->reg_settings[] instead of bmi323_ext_reg_savestate[] and ->ext_reg_settings[]. This was discov
iio: bmi323: fix copy and paste bugs in suspend resume
This code is using bmi323_reg_savestate[] and ->reg_settings[] instead of bmi323_ext_reg_savestate[] and ->ext_reg_settings[]. This was discovered by Smatch:
drivers/iio/imu/bmi323/bmi323_core.c:2202 bmi323_core_runtime_suspend() error: buffer overflow 'bmi323_reg_savestate' 9 <= 11
Fixes: 16531118ba63 ("iio: bmi323: peripheral in lowest power state on suspend") Signed-off-by: Dan Carpenter <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
show more ...
|