diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-03-13 13:58:30 +0100 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-03-13 16:48:23 +0100 |
| commit | 97892d5f0690f588bbcf755efe922c72cd248639 (patch) | |
| tree | 327f1842704161161000fe7834d40cbb37b073f7 /Documentation/controllers/git@git.tavy.me:linux.git | |
| parent | 6a8e793ca8db1546d05071ba0807cbf8c4f44a8b (diff) | |
ACPI: driver: Do not set acpi_device_name() unnecessarily
ACPI drivers usually set acpi_device_name() for the given struct
acpi_device to whatever they like, but that value is never used unless
the driver itself uses it and, quite unfortunately, drivers neglect to
clear it on remove. Some drivers use it for printing messages or
initializing the names of subordinate devices, but it is better to use
string literals for that, especially if the given one is used just once.
To eliminate unnecessary overhead related to acpi_device_name()
handling, rework multiple core ACPI device drivers to stop setting
acpi_device_name() for struct acpi_device objects manipulated
by them and use a string literal instead of it where applicable.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/10840483.nUPlyArG6x@rafael.j.wysocki
Diffstat (limited to 'Documentation/controllers/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
