mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1] platform/x86: topstar-laptop: Stop setting acpi_device_name/class()
@ 2026-07-03 12:41 Rafael J. Wysocki
  2026-07-03 12:49 ` Andy Shevchenko
  2026-07-06 17:20 ` Ilpo Järvinen
  0 siblings, 2 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2026-07-03 12:41 UTC (permalink / raw)
  To: Ilpo Järvinen, platform-driver-x86
  Cc: Andy Shevchenko, Hans de Goede, Linux ACPI, LKML,
	Herton Ronaldo Krzesinski

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.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---

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);




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

* Re: [PATCH v1] platform/x86: topstar-laptop: Stop setting acpi_device_name/class()
  2026-07-03 12:41 [PATCH v1] platform/x86: topstar-laptop: Stop setting acpi_device_name/class() Rafael J. Wysocki
@ 2026-07-03 12:49 ` Andy Shevchenko
  2026-07-06 17:20 ` Ilpo Järvinen
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2026-07-03 12:49 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Ilpo Järvinen, platform-driver-x86, Hans de Goede,
	Linux ACPI, LKML, Herton Ronaldo Krzesinski

On Fri, Jul 03, 2026 at 02:41:51PM +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.

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] platform/x86: topstar-laptop: Stop setting acpi_device_name/class()
  2026-07-03 12:41 [PATCH v1] platform/x86: topstar-laptop: Stop setting acpi_device_name/class() Rafael J. Wysocki
  2026-07-03 12:49 ` Andy Shevchenko
@ 2026-07-06 17:20 ` Ilpo Järvinen
  1 sibling, 0 replies; 3+ messages in thread
From: Ilpo Järvinen @ 2026-07-06 17:20 UTC (permalink / raw)
  To: platform-driver-x86, Rafael J. Wysocki
  Cc: Andy Shevchenko, Hans de Goede, Linux ACPI, LKML,
	Herton Ronaldo Krzesinski

On Fri, 03 Jul 2026 14:41:51 +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.

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 or clearly a regression fix.

The list of commits applied:
[1/1] platform/x86: topstar-laptop: Stop setting acpi_device_name/class()
      commit: 51a153f2747fad5dc566f94238b08da07d6a6fb6

--
 i.


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

end of thread, other threads:[~2026-07-06 17:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-03 12:41 [PATCH v1] platform/x86: topstar-laptop: Stop setting acpi_device_name/class() Rafael J. Wysocki
2026-07-03 12:49 ` Andy Shevchenko
2026-07-06 17:20 ` 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

Powered by JetHome