diff options
author | Michal Wilczynski <michal.wilczynski@intel.com> | 2023-10-11 11:33:31 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-10-13 20:11:29 +0200 |
commit | 5829046825ac89fffc60f2670bc564fda2c0155a (patch) | |
tree | 43e44778e420e0c1f99167e67052bd4a46cefd9d /lib/kunit | |
parent | 616990c92e40e4721beb66c2f855915fc1f32aba (diff) |
ACPI: AC: Replace acpi_driver with platform_driver
The AC driver uses struct acpi_driver to register itself while it would
be more logically consistent to use struct platform_driver for this
purpose, because the corresponding platform device is present and the
role of struct acpi_device is to amend the other bus types. ACPI devices
are not meant to be used as proper representation of hardware entities,
but to collect information on those hardware entities provided by the
platform firmware.
Use struct platform_driver for registering the AC driver.
Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Michal Wilczynski <michal.wilczynski@intel.com>
[ rjw: Changelog edits, acpi_ac_notify() modifications fixup ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'lib/kunit')
0 files changed, 0 insertions, 0 deletions