public inbox for linux-hwmon@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFT 0/5] hwmon: Introduce hwmon_update_groups()
@ 2026-01-23 18:22 Guenter Roeck
  2026-01-23 18:22 ` [PATCH RFT 1/5] hwmon: Handle attribute visibility evaluation in device core Guenter Roeck
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Guenter Roeck @ 2026-01-23 18:22 UTC (permalink / raw)
  To: linux-hwmon
  Cc: linux-doc, linux-kernel, Jaroslav Pulchart, Rafael J . Wysocki,
	lihuisong, Guenter Roeck

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

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

end of thread, other threads:[~2026-01-30 15:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-23 18:22 [PATCH RFT 0/5] hwmon: Introduce hwmon_update_groups() Guenter Roeck
2026-01-23 18:22 ` [PATCH RFT 1/5] hwmon: Handle attribute visibility evaluation in device core Guenter Roeck
2026-01-23 18:22 ` [PATCH RFT 2/5] hwmon: Provide helper function to find thermal zones Guenter Roeck
2026-01-23 18:22 ` [PATCH RFT 3/5] hwmon: Add support for updating " Guenter Roeck
2026-01-30 15:44   ` Guenter Roeck
2026-01-23 18:22 ` [PATCH RFT 4/5] hwmon: Implement hwmon_update_groups() Guenter Roeck
2026-01-23 18:22 ` [PATCH RFT 5/5] hwmon: (acpi_power_meter) Use hwmon_update_groups() to update sensor visibility Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox