Linux ACPI
 help / color / mirror / Atom feed
* [PATCH v1] x86/platform/olpc: xo15: Stop setting acpi_device_name/class()
@ 2026-07-06 12:26 Rafael J. Wysocki
  2026-07-08 14:25 ` Andy Shevchenko
  2026-07-09 13:40 ` Ilpo Järvinen
  0 siblings, 2 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2026-07-06 12:26 UTC (permalink / raw)
  To: Ilpo Järvinen, platform-driver-x86
  Cc: Andy Shevchenko, Hans de Goede, Linux ACPI, LKML, x86 Maintainers

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>
---
 arch/x86/platform/olpc/olpc-xo15-sci.c |    5 -----
 1 file changed, 5 deletions(-)

--- a/arch/x86/platform/olpc/olpc-xo15-sci.c
+++ b/arch/x86/platform/olpc/olpc-xo15-sci.c
@@ -18,8 +18,6 @@
 
 #define DRV_NAME			"olpc-xo15-sci"
 #define PFX				DRV_NAME ": "
-#define XO15_SCI_CLASS			DRV_NAME
-#define XO15_SCI_DEVICE_NAME		"OLPC XO-1.5 SCI"
 
 static unsigned long			xo15_sci_gpe;
 static bool				lid_wake_on_close;
@@ -148,9 +146,6 @@ static int xo15_sci_probe(struct platfor
 	if (!device)
 		return -ENODEV;
 
-	strscpy(acpi_device_name(device), XO15_SCI_DEVICE_NAME);
-	strscpy(acpi_device_class(device), XO15_SCI_CLASS);
-
 	/* Get GPE bit assignment (EC events). */
 	status = acpi_evaluate_integer(device->handle, "_GPE", NULL, &tmp);
 	if (ACPI_FAILURE(status))




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

* Re: [PATCH v1] x86/platform/olpc: xo15: Stop setting acpi_device_name/class()
  2026-07-06 12:26 [PATCH v1] x86/platform/olpc: xo15: Stop setting acpi_device_name/class() Rafael J. Wysocki
@ 2026-07-08 14:25 ` Andy Shevchenko
  2026-07-09 13:40 ` Ilpo Järvinen
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2026-07-08 14:25 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Ilpo Järvinen, platform-driver-x86, Hans de Goede,
	Linux ACPI, LKML, x86 Maintainers

On Mon, Jul 06, 2026 at 02:26:23PM +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

* Re: [PATCH v1] x86/platform/olpc: xo15: Stop setting acpi_device_name/class()
  2026-07-06 12:26 [PATCH v1] x86/platform/olpc: xo15: Stop setting acpi_device_name/class() Rafael J. Wysocki
  2026-07-08 14:25 ` Andy Shevchenko
@ 2026-07-09 13:40 ` Ilpo Järvinen
  1 sibling, 0 replies; 3+ messages in thread
From: Ilpo Järvinen @ 2026-07-09 13:40 UTC (permalink / raw)
  To: platform-driver-x86, Rafael J. Wysocki
  Cc: Andy Shevchenko, Hans de Goede, Linux ACPI, LKML, x86 Maintainers

On Mon, 06 Jul 2026 14:26:23 +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.
> 
> [...]

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] x86/platform/olpc: xo15: Stop setting acpi_device_name/class()
      commit: 6907aa0289b93481fa9a5847d1280aa665f9cb8f

--
 i.


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

end of thread, other threads:[~2026-07-09 13:40 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:26 [PATCH v1] x86/platform/olpc: xo15: Stop setting acpi_device_name/class() Rafael J. Wysocki
2026-07-08 14:25 ` 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