Re: [PATCH v1 00/10] platform/x86: classmate-laptop: Bind to platform devices instead of ACPI ones
From: Rafael J. Wysocki
Date: Fri May 08 2026 - 08:12:30 EST
On Thu, May 7, 2026 at 10:15 PM Rafael J. Wysocki <rafael@xxxxxxxxxx> wrote:
>
> 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 5 subdrivers in the platform x86
> classmate-laptop driver.
>
> The first 5 patches in the series are preliminary.
>
> Patch [01/10] updates remove callbacks of 2 subdrivers in classmate-laptop
> to free memory allocated during initialization as appropriate.
After posting this series I realized that it would be more convenient
to switch the _add() callbacks allocating the memory over to
devm_kzalloc() because that would lead to fewer changes overall in
subsequent patches.
So there will be a v2, but I'll first post two more driver conversion series.
Thanks!