* [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* Re: [PATCH v1] sonypi: Stop setting acpi_device_name/class()
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
2 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2026-07-08 14:30 UTC (permalink / raw)
To: Rafael J. Wysocki
Cc: Greg Kroah-Hartman, Linux ACPI, Mattia Dongili, Arnd Bergmann,
platform-driver-x86, LKML, Hans de Goede
On Mon, Jul 06, 2026 at 02:38:15PM +0200, Rafael J. Wysocki wrote:
> 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.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1] sonypi: Stop setting acpi_device_name/class()
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
2 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2026-07-08 14:32 UTC (permalink / raw)
To: Rafael J. Wysocki
Cc: Greg Kroah-Hartman, Linux ACPI, Mattia Dongili, Arnd Bergmann,
platform-driver-x86, LKML, Hans de Goede
On Mon, Jul 06, 2026 at 02:38:15PM +0200, Rafael J. Wysocki wrote:
> 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.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1] sonypi: Stop setting acpi_device_name/class()
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
2 siblings, 0 replies; 4+ messages in thread
From: Ilpo Järvinen @ 2026-07-09 13:40 UTC (permalink / raw)
To: Greg Kroah-Hartman, Linux ACPI, Rafael J. Wysocki
Cc: Mattia Dongili, Arnd Bergmann, platform-driver-x86, LKML,
Andy Shevchenko, Hans de Goede
On Mon, 06 Jul 2026 14:38:15 +0200, Rafael J. Wysocki wrote:
> 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.
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.
FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.
The list of commits applied:
[1/1] sonypi: Stop setting acpi_device_name/class()
commit: ec0a9831c71593ada1c6831724575e840efc7600
--
i.
^ permalink raw reply [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