mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iio: accel: adxl345: propagate event regmap errors
@ 2026-10-17  2:38 赵文强
  2026-10-17  2:39 ` [PATCH v2 1/2] iio: accel: adxl345: propagate errors when reading event configuration 赵文强
  2026-10-17  2:39 ` [PATCH v2 2/2] iio: accel: adxl345: propagate errors when disabling activity events 赵文强
  0 siblings, 2 replies; 5+ messages in thread
From: 赵文强 @ 2026-10-17  2:38 UTC (permalink / raw)
  To: Nuno Sá, Michael Hennerich, Jonathan Cameron
  Cc: David Lechner, Andy Shevchenko, Lothar Rubusch, Joshua Crofts,
	linux, linux-iio, linux-kernel

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@gmail.com>
---
赵文强 (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)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-18  7:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-17  2:38 [PATCH v2 0/2] iio: accel: adxl345: propagate event regmap errors 赵文强
2026-10-17  2:39 ` [PATCH v2 1/2] iio: accel: adxl345: propagate errors when reading event configuration 赵文强
2026-10-17 18:13   ` Jonathan Cameron
2026-10-18  7:40     ` Wenqiang Zhao
2026-10-17  2:39 ` [PATCH v2 2/2] iio: accel: adxl345: propagate errors when disabling activity events 赵文强

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®