diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2018-05-15 22:12:58 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-05-15 18:05:28 +0200 |
commit | 3a03f83b168b19f715cd043dc3a4600bd99f08ce (patch) | |
tree | a78167162372e8102e3c4ca33a54eb54c7355b5c /sound/pci | |
parent | b0eaa0721df31d4a7c47989a1ac6faedd8495ba1 (diff) | |
download | linux-3a03f83b168b19f715cd043dc3a4600bd99f08ce.tar.gz linux-3a03f83b168b19f715cd043dc3a4600bd99f08ce.tar.bz2 linux-3a03f83b168b19f715cd043dc3a4600bd99f08ce.zip |
ALSA: hda/ca0132: constify read-only members of string array
This module has some strings just for printk therefore they can be
read-only.
This commit applies this optimization.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_ca0132.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index d18022d72e83..8295bd06af66 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c @@ -90,7 +90,7 @@ MODULE_FIRMWARE(SBZ_EFX_FILE); MODULE_FIRMWARE(R3DI_EFX_FILE); #endif -static const char *dirstr[2] = { "Playback", "Capture" }; +static const char *const dirstr[2] = { "Playback", "Capture" }; #define NUM_OF_OUTPUTS 3 enum { @@ -105,7 +105,7 @@ enum { }; /* Strings for Input Source Enum Control */ -static const char *in_src_str[3] = {"Rear Mic", "Line", "Front Mic" }; +static const char *const in_src_str[3] = {"Rear Mic", "Line", "Front Mic" }; #define IN_SRC_NUM_OF_INPUTS 3 enum { REAR_MIC, @@ -4992,7 +4992,7 @@ static int ca0132_alt_output_select_put(struct snd_kcontrol *kcontrol, * and night, disregard the slider value and have uneditable values. */ #define NUM_OF_SVM_SETTINGS 3 -static const char *out_svm_set_enum_str[3] = {"Normal", "Loud", "Night" }; +static const char *const out_svm_set_enum_str[3] = {"Normal", "Loud", "Night" }; static int ca0132_alt_svm_setting_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |