mbox series

[v2,0/2] hwmon: acpi_power_meter: convert to new hwmon API

Message ID 20220504103028.493155-1-clabbe@baylibre.com (mailing list archive)
Headers show
Series hwmon: acpi_power_meter: convert to new hwmon API | expand

Message

Corentin LABBE May 4, 2022, 10:30 a.m. UTC
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

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