Commit a5dc05e4 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda: Constify snd_pci_quirk tables

The snd_pci_quirk tables are referred as read-only, hence they can be
declared as const gracefully.

There should be no functional changes by this patch.

Link: https://lore.kernel.org/r/20200103081714.9560-58-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent fb537cd0
...@@ -1490,7 +1490,7 @@ static bool check_hdmi_disabled(struct pci_dev *pci) ...@@ -1490,7 +1490,7 @@ static bool check_hdmi_disabled(struct pci_dev *pci)
/* /*
* white/black-listing for position_fix * white/black-listing for position_fix
*/ */
static struct snd_pci_quirk position_fix_list[] = { static const struct snd_pci_quirk position_fix_list[] = {
SND_PCI_QUIRK(0x1028, 0x01cc, "Dell D820", POS_FIX_LPIB), SND_PCI_QUIRK(0x1028, 0x01cc, "Dell D820", POS_FIX_LPIB),
SND_PCI_QUIRK(0x1028, 0x01de, "Dell Precision 390", POS_FIX_LPIB), SND_PCI_QUIRK(0x1028, 0x01de, "Dell Precision 390", POS_FIX_LPIB),
SND_PCI_QUIRK(0x103c, 0x306d, "HP dv3", POS_FIX_LPIB), SND_PCI_QUIRK(0x103c, 0x306d, "HP dv3", POS_FIX_LPIB),
...@@ -1583,7 +1583,7 @@ static void assign_position_fix(struct azx *chip, int fix) ...@@ -1583,7 +1583,7 @@ static void assign_position_fix(struct azx *chip, int fix)
/* /*
* black-lists for probe_mask * black-lists for probe_mask
*/ */
static struct snd_pci_quirk probe_mask_list[] = { static const struct snd_pci_quirk probe_mask_list[] = {
/* Thinkpad often breaks the controller communication when accessing /* Thinkpad often breaks the controller communication when accessing
* to the non-working (or non-existing) modem codec slot. * to the non-working (or non-existing) modem codec slot.
*/ */
...@@ -1631,7 +1631,7 @@ static void check_probe_mask(struct azx *chip, int dev) ...@@ -1631,7 +1631,7 @@ static void check_probe_mask(struct azx *chip, int dev)
/* /*
* white/black-list for enable_msi * white/black-list for enable_msi
*/ */
static struct snd_pci_quirk msi_black_list[] = { static const struct snd_pci_quirk msi_black_list[] = {
SND_PCI_QUIRK(0x103c, 0x2191, "HP", 0), /* AMD Hudson */ SND_PCI_QUIRK(0x103c, 0x2191, "HP", 0), /* AMD Hudson */
SND_PCI_QUIRK(0x103c, 0x2192, "HP", 0), /* AMD Hudson */ SND_PCI_QUIRK(0x103c, 0x2192, "HP", 0), /* AMD Hudson */
SND_PCI_QUIRK(0x103c, 0x21f7, "HP", 0), /* AMD Hudson */ SND_PCI_QUIRK(0x103c, 0x21f7, "HP", 0), /* AMD Hudson */
...@@ -2164,7 +2164,7 @@ static int azx_probe(struct pci_dev *pci, ...@@ -2164,7 +2164,7 @@ static int azx_probe(struct pci_dev *pci,
* So we keep a list of devices where we disable powersaving as its known * So we keep a list of devices where we disable powersaving as its known
* to causes problems on these devices. * to causes problems on these devices.
*/ */
static struct snd_pci_quirk power_save_blacklist[] = { static const struct snd_pci_quirk power_save_blacklist[] = {
/* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ /* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */
SND_PCI_QUIRK(0x1849, 0xc892, "Asrock B85M-ITX", 0), SND_PCI_QUIRK(0x1849, 0xc892, "Asrock B85M-ITX", 0),
/* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ /* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment