Linux ACPI
 help / color / mirror / Atom feed
* [PATCH v1] sonypi: Stop setting acpi_device_name/class()
@ 2026-07-06 12:38 Rafael J. Wysocki
  2026-07-08 14:30 ` Andy Shevchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2026-07-06 12:38 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Linux ACPI
  Cc: Mattia Dongili, Arnd Bergmann, platform-driver-x86, LKML,
	Andy Shevchenko, Hans de Goede

From: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>

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.

This will facilitate the removal of device_name and device_class from
struct acpi_device_pnp in the future.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 drivers/char/sonypi.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c
index 9309cfb935be..9a88d287fa09 100644
--- a/drivers/char/sonypi.c
+++ b/drivers/char/sonypi.c
@@ -1125,8 +1125,6 @@ static int sonypi_acpi_probe(struct platform_device *pdev)
 		return -ENODEV;
 
 	sonypi_acpi_device = device;
-	strscpy(acpi_device_name(device), "Sony laptop hotkeys");
-	strscpy(acpi_device_class(device), "sony/hotkey");
 	return 0;
 }
 
-- 
2.51.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-09 13:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-06 12:38 [PATCH v1] sonypi: Stop setting acpi_device_name/class() Rafael J. Wysocki
2026-07-08 14:30 ` Andy Shevchenko
2026-07-08 14:32 ` Andy Shevchenko
2026-07-09 13:40 ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox