diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 06:06:30 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-17 06:42:32 -0400 |
commit | 60f6f0d3f79ea932c0d05d1d9137ef98c3dae9a9 (patch) | |
tree | cd2016dfbd5972535179229bbeac731c72310a7d | |
parent | 05e20b265c9068d2f5871e3fcddc366d5f6feecb (diff) |
ALSA: wavefront: 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>
-rw-r--r-- | sound/isa/wavefront/wavefront.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/wavefront/wavefront.c b/sound/isa/wavefront/wavefront.c index da4e9a85f0af..b1989facd732 100644 --- a/sound/isa/wavefront/wavefront.c +++ b/sound/isa/wavefront/wavefront.c | |||
@@ -88,7 +88,7 @@ MODULE_PARM_DESC(use_cs4232_midi, "Use CS4232 MPU-401 interface (inaccessibly lo | |||
88 | static int isa_registered; | 88 | static int isa_registered; |
89 | static int pnp_registered; | 89 | static int pnp_registered; |
90 | 90 | ||
91 | static struct pnp_card_device_id snd_wavefront_pnpids[] = { | 91 | static const struct pnp_card_device_id snd_wavefront_pnpids[] = { |
92 | /* Tropez */ | 92 | /* Tropez */ |
93 | { .id = "CSC7532", .devs = { { "CSC0000" }, { "CSC0010" }, { "PnPb006" }, { "CSC0004" } } }, | 93 | { .id = "CSC7532", .devs = { { "CSC0000" }, { "CSC0010" }, { "PnPb006" }, { "CSC0004" } } }, |
94 | /* Tropez+ */ | 94 | /* Tropez+ */ |