mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 14:33:24 -04:00
platform/x86: topstar-laptop: Stop setting acpi_device_name/class()
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> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/12951216.O9o76ZdvQC@rafael.j.wysocki Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
This commit is contained in:
committed by
Ilpo Järvinen
parent
eb0d94ad1e
commit
1b257f94de
@@ -299,8 +299,6 @@ static int topstar_acpi_probe(struct platform_device *pdev)
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user