diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 06:06:19 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-17 06:42:18 -0400 |
commit | 287b546c7080ecef3513f3da87a27eabd50e8100 (patch) | |
tree | 2aee2f3b838db1c7d5e5a41b4909b173dcc169d6 /sound/isa | |
parent | 607b5d7f7a03c98705ba08c8f3a328ea5f678076 (diff) |
ALSA: ad1816a: constify pnp_card_device_id
pnp_card_device_id are not supposed to change at runtime. All functions
working with pnp_card_device_id provided by <linux/pnp.h> work with
const pnp_card_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r-- | sound/isa/ad1816a/ad1816a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/ad1816a/ad1816a.c b/sound/isa/ad1816a/ad1816a.c index 769226515f0d..4be6c1245820 100644 --- a/sound/isa/ad1816a/ad1816a.c +++ b/sound/isa/ad1816a/ad1816a.c | |||
@@ -63,7 +63,7 @@ MODULE_PARM_DESC(enable, "Enable ad1816a based soundcard."); | |||
63 | module_param_array(clockfreq, int, NULL, 0444); | 63 | module_param_array(clockfreq, int, NULL, 0444); |
64 | MODULE_PARM_DESC(clockfreq, "Clock frequency for ad1816a driver (default = 0)."); | 64 | MODULE_PARM_DESC(clockfreq, "Clock frequency for ad1816a driver (default = 0)."); |
65 | 65 | ||
66 | static struct pnp_card_device_id snd_ad1816a_pnpids[] = { | 66 | static const struct pnp_card_device_id snd_ad1816a_pnpids[] = { |
67 | /* Analog Devices AD1815 */ | 67 | /* Analog Devices AD1815 */ |
68 | { .id = "ADS7150", .devs = { { .id = "ADS7150" }, { .id = "ADS7151" } } }, | 68 | { .id = "ADS7150", .devs = { { .id = "ADS7150" }, { .id = "ADS7151" } } }, |
69 | /* Analog Device AD1816? */ | 69 | /* Analog Device AD1816? */ |