]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: SMBUS HC: Convert the driver to a platform one
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 11 Dec 2025 14:17:58 +0000 (15:17 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Dec 2025 20:04:23 +0000 (21:04 +0100)
commit6d2590533cdd057cacb3dc5a022fbe7a631bb99a
tree0b88e810fd3949f2d0022f024fccd3d50df5132a
parentdb65a06d10b3bf7153ba80cde6e447d440412b9f
ACPI: SMBUS HC: Convert the driver to a platform one

While binding drivers directly to struct acpi_device objects allows
basic functionality to be provided, at least in the majority of cases,
there are some problems with it, related to general consistency, sysfs
layout, power management operation ordering, and code cleanliness.

Overall, it is better to bind drivers to platform devices than to their
ACPI companions, so convert the ACPI SMBUS HC driver to a platform one.

After this conversion, acpi_ec_probe() does not need to populate the
driver_data pointer of the EC platform device's ACPI companion any
more, so update it accordingly.

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

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/13909645.uLZWGnKmhe@rafael.j.wysocki
drivers/acpi/ec.c
drivers/acpi/sbshc.c