[PATCH v3 0/5] platform/x86: panasonic-laptop: Bind to a platform device instead of an ACPI one

From: Rafael J. Wysocki

Date: Thu Mar 19 2026 - 07:37:05 EST


Hi All,

This is an update of

https://lore.kernel.org/linux-acpi/5979471.DvuYhMxLoT@rafael.j.wysocki/

adding one patch and modifying the initial patch in v2 to retain the
current behavior when the registration of an ACPI notify handler for
OPTD fails.

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 platform x86 Panasonic
hotkey and LCD brightness control driver.

Patch [1/5] changes one function return type to void.

Patch [2/5] fixes the rollback path in acpi_pcc_hotkey_add() and rearranges
the driver removal code ordering to match it.

Patch [3/5] removes some redundant checks from the driver.

Patch [4/5] 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 [5/5] converts the driver to using struct platform_driver for device
binding.

Thanks!