]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: PAD: xen: Convert to a platform driver
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 14 Mar 2026 11:57:23 +0000 (12:57 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 7 Apr 2026 19:06:59 +0000 (21:06 +0200)
commit112b2f978afee7df725cda74a94802f919c61564
tree3cc03994b586ebf6bb714bb2a6051c9f8514e9af
parenta56a658f2492ae70ca5e9db980b0af3aceb7b5b8
ACPI: PAD: xen: 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 Xen ACPI processor aggregator device
(PAD) 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/
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/8683270.T7Z3S40VBb@rafael.j.wysocki
drivers/xen/xen-acpi-pad.c