Skip to content

hwmon: Introduce hwmon_update_groups()

Guenter Roeck linux-doc linux-hwmon lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hwmon: Handle attribute visibility evaluation in device coredrivers/hwmon/hwmon.c+18 -40 replies
2/5hwmon: Provide helper function to find thermal zonesdrivers/hwmon/hwmon.c+18 -110 replies
3/5hwmon: Add support for updating thermal zonesdrivers/hwmon/hwmon.c+27 -71 reply
4/5hwmon: Implement hwmon_update_groups()Documentation/hwmon/hwmon-kernel-api.rst drivers/hwmon/hwmon.c include/linux/hwmon.h+34 -00 replies
5/5hwmon: (acpi_power_meter) Use hwmon_update_groups() to update sensor visibilitydrivers/hwmon/acpi_power_meter.c+13 -240 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFT 0/5] hwmon: Introduce hwmon_update_groups()

Introduce and use hwmon_update_groups() to support changing sysfs attribute visibility dynamically without having to re-register affected hardware monitoring devices.

Use the new function in the ACPI power meter driver.

RFT: The new function was tested extensively with a dummy driver which changes attribute visibility every few seconds. However, it was not tested in the 'real world'.

----------------------------------------------------------------
Guenter Roeck (5):
hwmon: Handle attribute visibility evaluation in device core
hwmon: Provide helper function to find thermal zones
hwmon: Add support for updating thermal zones
hwmon: Implement hwmon_update_groups()
hwmon: (acpi_power_meter) Use hwmon_update_groups() to update sensor visibility

 Documentation/hwmon/hwmon-kernel-api.rst |   8 +++
 drivers/hwmon/acpi_power_meter.c         |  37 ++++-------
 drivers/hwmon/hwmon.c                    | 108 ++++++++++++++++++++++++-------
 include/linux/hwmon.h                    |   2 +
 4 files changed, 109 insertions(+), 46 deletions(-)