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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

-- 
2.47.0





[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux