[PATCH v1] platform/x86: topstar-laptop: Stop setting acpi_device_name/class()
From: Rafael J. Wysocki
Date: Fri Jul 03 2026 - 08:51:40 EST
From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
The driver sets acpi_device_name() and acpi_device_class() which are
never read afterward, so make it stop doing that.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
---
This should have been included in
https://lore.kernel.org/linux-acpi/5135166.31r3eYUQgx@rafael.j.wysocki/
but it was missed.
That doesn't matter though too much because it does not depend on
any patches in that series, so it may as well go alone.
---
drivers/platform/x86/topstar-laptop.c | 2 --
1 file changed, 2 deletions(-)
--- a/drivers/platform/x86/topstar-laptop.c
+++ b/drivers/platform/x86/topstar-laptop.c
@@ -299,8 +299,6 @@ static int topstar_acpi_probe(struct pla
platform_set_drvdata(pdev, topstar);
- strscpy(acpi_device_name(device), "Topstar TPSACPI");
- strscpy(acpi_device_class(device), TOPSTAR_LAPTOP_CLASS);
topstar->device = device;
err = topstar_acpi_init(topstar);