mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
ALSA: hda: acpi: Make driver's match data const static
The driver's match data, nvidia_hda_data, is referred only locally,
and should be static. Also, as it's a read-only data, it can be
gracefully const, too.
Fixes: 4b214c9bbe ("ALSA: hda - Add new driver for HDA controllers listed via ACPI")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202505230426.k8ruTgnr-lkp@intel.com/
Link: https://patch.msgid.link/20250522205252.4056-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
ebaa3bf415
commit
aca89f1be6
|
|
@ -296,7 +296,7 @@ static const struct dev_pm_ops hda_acpi_pm = {
|
|||
SYSTEM_SLEEP_PM_OPS(hda_acpi_suspend, hda_acpi_resume)
|
||||
};
|
||||
|
||||
struct hda_data nvidia_hda_data = {
|
||||
static const struct hda_data nvidia_hda_data = {
|
||||
.short_name = "NVIDIA",
|
||||
.long_name = "NVIDIA HDA Controller",
|
||||
.flags = AZX_DCAPS_CORBRP_SELF_CLEAR,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user