Skip to content

iio: light: acpi-als: Use platform device for driver binding

Rafael J. Wysocki linux-acpi linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iio: light: acpi-als: Register ACPI notify handler directlydrivers/iio/light/acpi-als.c+15 -51 reply
2/2iio: light: acpi-als: Convert ACPI driver to a platform onedrivers/iio/light/acpi-als.c+14 -132 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndy Shevchenko
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] iio: light: acpi-als: Use platform device for driver binding

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/[email protected]/

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 IIO ACPI Ambient Light Sensor (ALS) driver.

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

Thanks!