[PATCH v2 0/2] iio: accel: adxl345: propagate event regmap errors

From: 赵文强

Date: Fri Oct 16 2026 - 22:39:17 EST


This two-patch series fixes regmap error propagation in the ADXL345
activity/inactivity event configuration paths:

1. Propagate negative regmap read errors from adxl345_is_act_inact_en()
in adxl345_read_mag_config() instead of converting them to 1 via !!.
2. Preserve negative errors from adxl345_is_act_inact_ac() when
disabling activity/inactivity events in adxl345_set_act_inact_en().

Changes in v2:
- Resend with a [PATCH v2 0/2] cover letter, preserving patch line
lengths and whitespace to address the v1 formatting report
(thanks to Joshua Crofts).
- No code changes from v1.

Assisted-by: LLM
Signed-off-by: 赵文强 <berringtoni36@xxxxxxxxx>
---
赵文强 (2):
iio: accel: adxl345: propagate errors when reading event configuration
iio: accel: adxl345: propagate errors when disabling activity events

drivers/iio/accel/adxl345_core.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)


base-commit: 9ee8306121495d2a25aa5d1bfd519f2748786b83
--
2.50.1 (Apple Git-155)