Skip to content

hwmon: acpi_power_meter: convert to new hwmon API

Corentin Labbe linux-hwmon lkml 3 versions – Applied

Status from this message: Applied to hwmon-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 14 repliesApplied
  2. v22 patches 0 repliesSuperseded
  3. v12 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- fix 32b build by using div_u64()

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2hwmon: acpi_power_meter: fix style issuedrivers/hwmon/acpi_power_meter.c+9 -81 reply
2/2hwmon: acpi_power_meter: convert to hwmon_device_register_with_infodrivers/hwmon/acpi_power_meter.c+219 -29013 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] hwmon: acpi_power_meter: convert to new hwmon API

Hello

I dont like warning in my boot log such as:
hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). So I did the conversion to the new API.

The patchset was tested with:
- sensors
- cat all values directly in sysfs (for ones not displayed by sensors like oem_info, model_number, etc..)

But due to missing functionnality on my hardware some code path was not tested. (Like all cap_xxx)

Regards

Change since v1:
- use really the new API

Change since v2:
- fix 32b build by using div_u64()

Corentin Labbe (2):
hwmon: acpi_power_meter: fix style issue
hwmon: acpi_power_meter: convert to hwmon_device_register_with_info

 drivers/hwmon/acpi_power_meter.c | 524 +++++++++++++------------------
 1 file changed, 227 insertions(+), 297 deletions(-)
Signature · 1 line
2.35.1