aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-05-22 22:52:51 +0200
committerTakashi Iwai <tiwai@suse.de>2025-05-22 22:53:51 +0200
commitaca89f1be6bd3196dedc368e257351c1e561082e (patch)
tree9288e3e32b9fbee9d3c5a24def82de4cae69a056 /sound
parentALSA: hda: acpi: Use SYSTEM_SLEEP_PM_OPS() (diff)
downloadlinux-rng-aca89f1be6bd3196dedc368e257351c1e561082e.tar.xz
linux-rng-aca89f1be6bd3196dedc368e257351c1e561082e.zip
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: 4b214c9bbe26 ("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>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/hda_acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_acpi.c b/sound/pci/hda/hda_acpi.c
index 513f8fde198b..505cc97e0ee9 100644
--- a/sound/pci/hda/hda_acpi.c
+++ b/sound/pci/hda/hda_acpi.c
@@ -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,