Skip to content

hwmon: Add and use helper hwmon_visible_0444

Heiner Kallweit linux-arm-kernel linux-hwmon 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9hwmon: Add helper hwmon_visible_0444drivers/hwmon/hwmon.c include/linux/hwmon.h+9 -00 replies
2/9hwmon: i5500_temp: Use new helper hwmon_visible_0444drivers/hwmon/i5500_temp.c+1 -70 replies
3/9hwmon: surface_fan: Use new helper hwmon_visible_0444drivers/hwmon/surface_fan.c+1 -90 replies
4/9hwmon: sl28cpld: Use new helper hwmon_visible_0444drivers/hwmon/sl28cpld-hwmon.c+1 -81 reply
5/9hwmon: gsc: Use new helper hwmon_visible_0444drivers/hwmon/gsc-hwmon.c+1 -80 replies
6/9hwmon: powerz: Use new helper hwmon_visible_0444drivers/hwmon/powerz.c+1 -70 replies
7/9hwmon: raspberrypi: Use new helper hwmon_visible_0444drivers/hwmon/raspberrypi-hwmon.c+1 -70 replies
8/9hwmon: intel-m10-bmc: Use new helper hwmon_visible_0444drivers/hwmon/intel-m10-bmc-hwmon.c+1 -80 replies
9/9hwmon: nzxt-kraken2: Use new helper hwmon_visible_0444drivers/hwmon/nzxt-kraken2.c+1 -80 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchMichael Walle
1/9
2/9
3/9
4/9R-b
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] hwmon: Add and use helper hwmon_visible_0444

Several drivers simply return 0444 in their is_visible callback. Add a helper in hwmon core for this use case to avoid code duplication.

There are more drivers outside drivers/hwmon which would benefit from this helper as well.

Heiner Kallweit (9):
hwmon: Add helper hwmon_visible_0444
hwmon: i5500_temp: Use new helper hwmon_visible_0444
hwmon: surface_fan: Use new helper hwmon_visible_0444
hwmon: sl28cpld: Use new helper hwmon_visible_0444
hwmon: gsc: Use new helper hwmon_visible_0444
hwmon: powerz: Use new helper hwmon_visible_0444
hwmon: raspberrypi: Use new helper hwmon_visible_0444
hwmon: intel-m10-bmc: Use new helper hwmon_visible_0444
hwmon: nzxt-kraken2: Use new helper hwmon_visible_0444

 drivers/hwmon/gsc-hwmon.c           |  9 +--------
 drivers/hwmon/hwmon.c               |  7 +++++++
 drivers/hwmon/i5500_temp.c          |  8 +-------
 drivers/hwmon/intel-m10-bmc-hwmon.c |  9 +--------
 drivers/hwmon/nzxt-kraken2.c        |  9 +--------
 drivers/hwmon/powerz.c              |  8 +-------
 drivers/hwmon/raspberrypi-hwmon.c   |  8 +-------
 drivers/hwmon/sl28cpld-hwmon.c      |  9 +--------
 drivers/hwmon/surface_fan.c         | 10 +---------
 include/linux/hwmon.h               |  2 ++
 10 files changed, 17 insertions(+), 62 deletions(-)
Signature · 1 line
2.47.0