Skip to content

hwmon: Support guard() and scoped_guard for subsystem locks

Guenter Roeck linux-hwmon 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hwmon: Support guard() and scoped_guard for subsystem locksDocumentation/hwmon/hwmon-kernel-api.rst include/linux/hwmon.h+6 -30 replies
2/4hwmon: (lm90) Use guard() to acquire subsystem lockdrivers/hwmon/lm90.c+2 -70 replies
3/4hwmon: (ina2xx) Use scoped_guard() to acquire the subsystem lockdrivers/hwmon/ina2xx.c+5 -50 replies
4/4hwmon: (adt7411) Use scoped_guard() to acquire the subsystem lockdrivers/hwmon/adt7411.c+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] hwmon: Support guard() and scoped_guard for subsystem locks

Add support for guard() and scoped_guard() for the hwmon subsystem lock to simplify its use, and convert existing drivers to use the new functions.

----------------------------------------------------------------
Guenter Roeck (4):
hwmon: Support guard() and scoped_guard for subsystem locks
hwmon: (lm90) Use guard() to acquire subsystem lock
hwmon: (ina2xx) Use scoped_guard() to acquire the subsystem lock
hwmon: (adt7411) Use scoped_guard() to acquire the subsystem lock

 Documentation/hwmon/hwmon-kernel-api.rst |  7 ++++---
 drivers/hwmon/adt7411.c                  | 10 +++++-----
 drivers/hwmon/ina2xx.c                   | 10 +++++-----
 drivers/hwmon/lm90.c                     |  9 ++-------
 include/linux/hwmon.h                    |  2 ++
 5 files changed, 18 insertions(+), 20 deletions(-)