linux/drivers/platform/chrome/wilco_ec
Rafael J. Wysocki 27d58498f6 platform/chrome: wilco_ec: event: Convert to a platform driver
In all cases in which a struct acpi_driver is used for binding a driver
to an ACPI device object, a corresponding platform device is created by
the ACPI core and that device is regarded as a proper representation of
underlying hardware.  Accordingly, a struct platform_driver should be
used by driver code to bind to that device.  There are multiple reasons
why drivers should not bind directly to ACPI device objects [1].

Overall, it is better to bind drivers to platform devices than to their
ACPI companions, so convert the ChromeOS Wilco Embedded Controller event
ACPI driver to a platform one.

While this is not expected to alter functionality, it changes sysfs
layout and so it will be visible to user space.

Link: https://lore.kernel.org/all/2396510.ElGaqSPkdT@rafael.j.wysocki/ [1]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/9600287.CDJkKcVGEf@rafael.j.wysocki
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
2026-03-06 04:35:07 +00:00
..
core.c platform/chrome: Switch back to struct platform_driver::remove() 2024-10-28 08:48:34 +00:00
debugfs.c platform/chrome: Switch back to struct platform_driver::remove() 2024-10-28 08:48:34 +00:00
event.c platform/chrome: wilco_ec: event: Convert to a platform driver 2026-03-06 04:35:07 +00:00
Kconfig platform/chrome: add HAS_IOPORT dependencies 2024-04-24 16:45:59 +08:00
keyboard_leds.c
mailbox.c platform/chrome: cros_ec_lpc: MEC access can return error code 2024-06-06 03:09:16 +00:00
Makefile
properties.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
sysfs.c platform/chrome: wilco_ec: use sysfs_emit() instead of sprintf() 2024-04-24 16:45:56 +08:00
telemetry.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00