mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/5] iio: accel: mma8452: improve coding style, pm and resource cleanup
@ 2026-06-02 13:29 Sanjay Chitroda
  2026-06-02 13:29 ` [PATCH v4 1/5] iio: accel: mma8452: convert to bulk regulator usage Sanjay Chitroda
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Sanjay Chitroda @ 2026-06-02 13:29 UTC (permalink / raw)
  To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: linux-iio, linux-kernel, Sanjay Chitroda, Jonathan Cameron

Hi all,

This series contains a small fixes, cleanup and improvements to use
modern kernel helper API and coding style for mma8452 accel driver.

The changes modernize mutex with guard(), dev_err_probe usage,
resolve checkpatch CHECKS and pm_ptr macro usage.

Changes in v3:
- Following input from Andy and Jonathan added new changes as following
  0001: handle return value to have proper error propagation
  0002: use non-devm API to maintain resource management LIFO order
  0006: convert individual regulator using bulk regulator API
  0009: use IIO cleanup helper for DIRECT_MODE
- Address kernel coding stype specific review comment
- Reorder local struct device and dev_err_probe change
v2 series -> https://lore.kernel.org/all/20260422165643.2148195-1-sanjayembedded@gmail.com/
Changes in v2:
- 0005: address review comment from Andy and Geert
  and use DEFINE_RUNTIME_DEV_PM_OPS macro
- Added new cleanup channges in mma8452 driver

No functional behavior changes are intended.

Testing:
  - Compiled with W=1
  - Build-tested on QEMU x86_64

Feedback and reviews are very welcome.

---
Sanjay Chitroda (5):
      iio: accel: mma8452: convert to bulk regulator usage
      iio: accel: mma8452: use local struct device
      iio: accel: mma8452: use pm_ptr() and direct runtime PM calls
      iio: accel: mma8452: Use IIO cleanup helpers
      iio: accel: mma8452: use guard() to release mutexes

 drivers/iio/accel/mma8452.c | 247 +++++++++++++++++++-------------------------
 1 file changed, 109 insertions(+), 138 deletions(-)
---
base-commit: 7b84b1e9dd850a5c9b55e27daa4ecdc2dd5b3431
change-id: 20260601-15-apr-pm-iio-mma8452-v4-temp-e040489abec3

Best regards,
--  
Sanjay Chitroda <sanjayembeddedse@gmail.com>


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

end of thread, other threads:[~2026-06-03 13:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-02 13:29 [PATCH v4 0/5] iio: accel: mma8452: improve coding style, pm and resource cleanup Sanjay Chitroda
2026-06-02 13:29 ` [PATCH v4 1/5] iio: accel: mma8452: convert to bulk regulator usage Sanjay Chitroda
2026-06-03  0:59   ` Andy Shevchenko
2026-06-02 13:29 ` [PATCH v4 2/5] iio: accel: mma8452: use local struct device Sanjay Chitroda
2026-06-03  1:00   ` Andy Shevchenko
2026-06-02 13:29 ` [PATCH v4 3/5] iio: accel: mma8452: use pm_ptr() and direct runtime PM calls Sanjay Chitroda
2026-06-03 13:30   ` Jonathan Cameron
2026-06-02 13:29 ` [PATCH v4 4/5] iio: accel: mma8452: Use IIO cleanup helpers Sanjay Chitroda
2026-06-03  1:02   ` Andy Shevchenko
2026-06-02 13:29 ` [PATCH v4 5/5] iio: accel: mma8452: use guard() to release mutexes Sanjay Chitroda
2026-06-03  1:01   ` Andy Shevchenko

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®