Linux ACPI
 help / color / mirror / Atom feed
* [PATCH v1] ACPI: PAD: xen: Stop setting acpi_device_name/class()
@ 2026-07-06 12:42 Rafael J. Wysocki
  2026-07-06 12:59 ` Jürgen Groß
  2026-07-08 14:34 ` Andy Shevchenko
  0 siblings, 2 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2026-07-06 12:42 UTC (permalink / raw)
  To: Linux ACPI
  Cc: Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko, LKML,
	Andy Shevchenko

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 and drop the symbols
defined specifically for this purpose.

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/xen/xen-acpi-pad.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/xen/xen-acpi-pad.c b/drivers/xen/xen-acpi-pad.c
index 5b98e0e93807..2fa9c7d3581f 100644
--- a/drivers/xen/xen-acpi-pad.c
+++ b/drivers/xen/xen-acpi-pad.c
@@ -17,8 +17,6 @@
 #include <xen/xen-ops.h>
 #include <asm/xen/hypercall.h>
 
-#define ACPI_PROCESSOR_AGGREGATOR_CLASS	"acpi_pad"
-#define ACPI_PROCESSOR_AGGREGATOR_DEVICE_NAME "Processor Aggregator"
 #define ACPI_PROCESSOR_AGGREGATOR_NOTIFY 0x80
 static DEFINE_MUTEX(xen_cpu_lock);
 
@@ -117,9 +115,6 @@ static int acpi_pad_probe(struct platform_device *pdev)
 	if (!device)
 		return -ENODEV;
 
-	strcpy(acpi_device_name(device), ACPI_PROCESSOR_AGGREGATOR_DEVICE_NAME);
-	strcpy(acpi_device_class(device), ACPI_PROCESSOR_AGGREGATOR_CLASS);
-
 	status = acpi_install_notify_handler(device->handle,
 		ACPI_DEVICE_NOTIFY, acpi_pad_notify, device);
 	if (ACPI_FAILURE(status))
-- 
2.51.0





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

* Re: [PATCH v1] ACPI: PAD: xen: Stop setting acpi_device_name/class()
  2026-07-06 12:42 [PATCH v1] ACPI: PAD: xen: Stop setting acpi_device_name/class() Rafael J. Wysocki
@ 2026-07-06 12:59 ` Jürgen Groß
  2026-07-08 14:34 ` Andy Shevchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Jürgen Groß @ 2026-07-06 12:59 UTC (permalink / raw)
  To: Rafael J. Wysocki, Linux ACPI
  Cc: Stefano Stabellini, Oleksandr Tyshchenko, LKML, Andy Shevchenko


[-- Attachment #1.1.1: Type: text/plain, Size: 580 bytes --]

On 06.07.26 14:42, Rafael J. Wysocki wrote:
> 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 and drop the symbols
> defined specifically for this purpose.
> 
> 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>

Acked-by: Juergen Gross <jgross@suse.com>


Juergen

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3743 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

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

* Re: [PATCH v1] ACPI: PAD: xen: Stop setting acpi_device_name/class()
  2026-07-06 12:42 [PATCH v1] ACPI: PAD: xen: Stop setting acpi_device_name/class() Rafael J. Wysocki
  2026-07-06 12:59 ` Jürgen Groß
@ 2026-07-08 14:34 ` Andy Shevchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2026-07-08 14:34 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Linux ACPI, Juergen Gross, Stefano Stabellini,
	Oleksandr Tyshchenko, LKML

On Mon, Jul 06, 2026 at 02:42:20PM +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 and drop the symbols
> defined specifically for this purpose.
> 
> 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] 3+ messages in thread

end of thread, other threads:[~2026-07-08 14:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-06 12:42 [PATCH v1] ACPI: PAD: xen: Stop setting acpi_device_name/class() Rafael J. Wysocki
2026-07-06 12:59 ` Jürgen Groß
2026-07-08 14:34 ` Andy Shevchenko

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