platform/loongarch: laptop: Stop setting acpi_device_class()
Rafael J. Wysocki
maintainerPATCH 1/1 platform/loongarch: laptop: Stop setting acpi_device_class()
From: "Rafael J. Wysocki" <[email protected]>
The driver populates acpi_device_class() which is never read afterward, so make it stop doing that and drop the symbol defined specifically for this purpose.
No intentional functional impact.
This will facilitate the removal of device_class from struct acpi_device_pnp in the future.
Signed-off-by Rafael J. Wysocki <[email protected]>
--- drivers/platform/loongarch/loongson-laptop.c | 3 --- 1 file changed, 3 deletions(-)
drivers/platform/loongarch/loongson-laptop.c +0 -3
@@ -30,7 +30,6 @@#define LOONGSON_ACPI_HKEY_HID "LOON0000"#define ACPI_LAPTOP_NAME "loongson-laptop" -#define ACPI_LAPTOP_ACPI_EVENT_PREFIX "loongson"#define MAX_ACPI_ARGS 3#define GENERIC_HOTKEY_MAP_MAX 64
@@ -167,8 +166,6 @@ static int __init setup_acpi_notify(struct generic_sub_driver *sub_driver) } sub_driver->device->driver_data = sub_driver; -sprintf (acpi_device_class (sub_driver->device),"%s/%s" , -ACPI_LAPTOP_ACPI_EVENT_PREFIX , sub_driver->name); status =acpi_install_notify_handler (*sub_driver->handle, sub_driver->type, dispatch_acpi_notify, sub_driver);
Signature · 1 line
2.51.0
Quoted 8 lines · Rafael J. Wysocki
The driver populates
acpi_device_class()which is never read afterward, so make it stop doing that and drop the symbol defined specifically for this purpose.No intentional functional impact.
This will facilitate the removal of
device_classfrom structacpi_device_pnpin the future.
Reviewed-by Andy Shevchenko <[email protected]>
Signature · 2 lines
With Best Regards, Andy Shevchenko