mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/3] hwmon: (acpi_power_meter) Bind the driver to a platform device
@ 2026-03-01 13:16 Rafael J. Wysocki
  2026-03-01 13:17 ` [PATCH v1 1/3] hwmon: (acpi_power_meter) Drop redundant checks from three functions Rafael J. Wysocki
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Rafael J. Wysocki @ 2026-03-01 13:16 UTC (permalink / raw)
  To: Guenter Roeck, Jaroslav Pulchart; +Cc: LKML, Linux ACPI, linux-hwmon

Hi All,

This series is part of a larger effort to switch over all drivers using
the struct acpi_driver interface to the more common struct platform_driver
interface and eliminate the former.  The background is explained in
Documentation/driver-api/acpi/acpi-drivers.rst and in the changelog of
the patch that introduced the above document:

https://lore.kernel.org/all/2396510.ElGaqSPkdT@rafael.j.wysocki/

The bottom line is that the kernel would be better off without struct
acpi_driver and so it is better to get rid of it.

This series carries out driver conversion of the hwmon acpi_power_meter
driver.

Patch [1/3] removes some redundant checks from three functions in the
driver to facilitate subsequent changes.

Patch [2/3] updates the driver to install an ACPI notify handler by itself
instead of using the .notify() callback from struct acpi_driver, which is
requisite for the driver conversion.

Patch [3/3] converts the driver to using struct platform_driver for device
binding.

@Jaroslaw, testing this on your systems where the acpi_power_meter driver
is used would be much appreciated.

Thanks!




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

end of thread, other threads:[~2026-03-02  0:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-01 13:16 [PATCH v1 0/3] hwmon: (acpi_power_meter) Bind the driver to a platform device Rafael J. Wysocki
2026-03-01 13:17 ` [PATCH v1 1/3] hwmon: (acpi_power_meter) Drop redundant checks from three functions Rafael J. Wysocki
2026-03-01 23:53   ` Guenter Roeck
2026-03-01 13:18 ` [PATCH v1 2/3] hwmon: (acpi_power_meter) Register ACPI notify handler directly Rafael J. Wysocki
2026-03-01 23:54   ` Guenter Roeck
2026-03-01 13:18 ` [PATCH v1 3/3] hwmon: (acpi_power_meter) Convert ACPI driver to a platform one Rafael J. Wysocki
2026-03-02  0:01   ` Guenter Roeck

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

all inboxes | Powered by JetHome®