constify pnp_device_id and pnp_card_device_id
PATCH 3/15 ALSA: opl3sa2: constify pnp_device_id and pnp_card_device_id
In reply to Arvind Yadav*_device_id are not supposed to change at runtime. All functions working with *_device_id provided by <linux/pnp.h> work with const *_device_id. So mark the non-const structs as const.
--- sound/isa/opl3sa2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/isa/opl3sa2.c +2 -2
@@ -141,7 +141,7 @@ struct snd_opl3sa2 {#ifdef CONFIG_PNP -static struct pnp_device_id snd_opl3sa2_pnpbiosids[] = { +static const struct pnp_device_id snd_opl3sa2_pnpbiosids[] = { { .id ="YMH0021" }, { .id ="NMX2210" },/* Gateway Solo 2500 */ { .id = "" } /* end */
@@ -149,7 +149,7 @@ static struct pnp_device_id snd_opl3sa2_pnpbiosids[] = {MODULE_DEVICE_TABLE (pnp, snd_opl3sa2_pnpbiosids); -static struct pnp_card_device_id snd_opl3sa2_pnpids[] = { +static const struct pnp_card_device_id snd_opl3sa2_pnpids[] = {/* Yamaha YMF719E-S (Genius Sound Maker 3DX) */ { .id ="YMH0020" , .devs = { {"YMH0021" } } },/* Yamaha OPL3-SA3 (integrated on Intel's Pentium II AL440LX motherboard) */
Signature · 1 line
2.7.4
PATCH 6/15 ALSA: azt2320: constify pnp_card_device_id
In reply to Arvind Yadavpnp_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.
--- sound/isa/azt2320.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/azt2320.c +1 -1
@@ -79,7 +79,7 @@ struct snd_card_azt2320 {struct snd_wss *chip; }; -static struct pnp_card_device_id snd_azt2320_pnpids[] = { +static const struct pnp_card_device_id snd_azt2320_pnpids[] = {/* PRO16V */ { .id ="AZT1008" , .devs = { {"AZT1008" }, {"AZT2001" }, } },/* Aztech Sound Galaxy 16 */
Signature · 1 line
2.7.4
PATCH 7/15 ALSA: cmi8330: constify pnp_card_device_id
In reply to Arvind Yadavpnp_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.
--- sound/isa/cmi8330.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/cmi8330.c +1 -1
@@ -182,7 +182,7 @@ struct snd_cmi8330 {#ifdef CONFIG_PNP -static struct pnp_card_device_id snd_cmi8330_pnpids[] = { +static const struct pnp_card_device_id snd_cmi8330_pnpids[] = { { .id ="CMI0001" , .devs = { {"@X@0001" }, {"@@@0001" }, {"@H@0001" }, {"A@@0001" } } }, { .id ="CMI0001" , .devs = { {"@@@0001" }, {"@X@0001" }, {"@H@0001" } } }, { .id = "" }
Signature · 1 line
2.7.4
PATCH 9/15 ALSA: es1688: constify pnp_card_device_id
In reply to Arvind Yadavpnp_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.
--- sound/isa/es1688/es1688.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/es1688/es1688.c +1 -1
@@ -321,7 +321,7 @@ static int snd_es968_pnp_resume(struct pnp_card_link *pcard) }#endif -static struct pnp_card_device_id snd_es968_pnpids[] = { +static const struct pnp_card_device_id snd_es968_pnpids[] = { { .id ="ESS0968" , .devs = { {"@@@0968" }, } }, { .id ="ESS0968" , .devs = { {"ESS0968" }, } }, { .id ="" , }/* end */
Signature · 1 line
2.7.4
PATCH 10/15 ALSA: gus: constify pnp_card_device_id
In reply to Arvind Yadavpnp_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.
--- sound/isa/gus/interwave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/gus/interwave.c +1 -1
@@ -136,7 +136,7 @@ struct snd_interwave {static int isa_registered;static int pnp_registered; -static struct pnp_card_device_id snd_interwave_pnpids[] = { +static const struct pnp_card_device_id snd_interwave_pnpids[] = { #ifndef SNDRV_STB/* Gravis UltraSound Plug & Play */ { .id = "GRV0001", .devs = { { .id = "GRV0000" } } },
Signature · 1 line
2.7.4
PATCH 11/15 ALSA: msnd: constify pnp_card_device_id
In reply to Arvind Yadavpnp_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.
--- sound/isa/msnd/msnd_pinnacle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/msnd/msnd_pinnacle.c +1 -1
@@ -1191,7 +1191,7 @@ static void snd_msnd_pnp_remove(struct pnp_card_link *pcard)static int isa_registered;static int pnp_registered; -static struct pnp_card_device_id msnd_pnpids[] = { +static const struct pnp_card_device_id msnd_pnpids[] = {/* Pinnacle PnP */ { .id ="BVJ0440" , .devs = { {"TBS0000" }, {"TBS0001" } } }, { .id ="" }/* end */
Signature · 1 line
2.7.4
PATCH 12/15 ALSA: opti9xx: constify pnp_card_device_id
In reply to Arvind Yadavpnp_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.
--- sound/isa/opti9xx/miro.c | 2 +- sound/isa/opti9xx/opti92x-ad1848.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/isa/opti9xx/miro.c +1 -1
@@ -143,7 +143,7 @@ static int snd_miro_pnp_is_probed;#ifdef CONFIG_PNP -static struct pnp_card_device_id snd_miro_pnpids[] = { +static const struct pnp_card_device_id snd_miro_pnpids[] = {/* PCM20 and PCM12 in PnP mode */ { .id ="MIR0924" , .devs = { { "MIR0000" }, { "MIR0002" }, { "MIR0005" } }, },
sound/isa/opti9xx/opti92x-ad1848.c +1 -1
@@ -151,7 +151,7 @@ static int snd_opti9xx_pnp_is_probed; #ifdef CONFIG_PNP -static struct pnp_card_device_id snd_opti9xx_pnpids[] = { +static const struct pnp_card_device_id snd_opti9xx_pnpids[] = { #ifndef OPTi93X /* OPTi 82C924 */ { .id = "OPT0924",
Signature · 1 line
2.7.4
PATCH 13/15 ALSA: sb16: constify pnp_card_device_id
In reply to Arvind Yadavpnp_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.
--- sound/isa/sb/sb16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/sb/sb16.c +1 -1
@@ -145,7 +145,7 @@ struct snd_card_sb16 {#ifdef CONFIG_PNP -static struct pnp_card_device_id snd_sb16_pnpids[] = { +static const struct pnp_card_device_id snd_sb16_pnpids[] = { #ifndef SNDRV_SBAWE/* Sound Blaster 16 PnP */ { .id = "CTL0024", .devs = { { "CTL0031" } } },
Signature · 1 line
2.7.4
PATCH 14/15 ALSA: sscape: constify pnp_card_device_id
In reply to Arvind Yadavpnp_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.
--- sound/isa/sscape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/sscape.c +1 -1
@@ -88,7 +88,7 @@ MODULE_PARM_DESC(joystick, "Enable gameport.");static int isa_registered;static int pnp_registered; -static struct pnp_card_device_id sscape_pnpids[] = { +static const struct pnp_card_device_id sscape_pnpids[] = { { .id ="ENS3081" , .devs = { {"ENS0000" } } },/* Soundscape PnP */ { .id ="ENS4081" , .devs = { {"ENS1011" } } },/* VIVO90 */ { .id ="" }/* end */
Signature · 1 line
2.7.4
PATCH 15/15 ALSA: wavefront: constify pnp_card_device_id
In reply to Arvind Yadavpnp_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.
--- sound/isa/wavefront/wavefront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/wavefront/wavefront.c +1 -1
@@ -88,7 +88,7 @@ MODULE_PARM_DESC(use_cs4232_midi, "Use CS4232 MPU-401 interface (inaccessibly lostatic int isa_registered;static int pnp_registered; -static struct pnp_card_device_id snd_wavefront_pnpids[] = { +static const struct pnp_card_device_id snd_wavefront_pnpids[] = {/* Tropez */ { .id ="CSC7532" , .devs = { {"CSC0000" }, {"CSC0010" }, {"PnPb006" }, {"CSC0004" } } },/* Tropez+ */
Signature · 1 line
2.7.4
cover constify pnp_device_id and pnp_card_device_id
*_device_id are not supposed to change at runtime. All functions working with *_device_id provided by <linux/pnp.h> work with const *_device_id. So mark the non-const structs as const.
Arvind Yadav (15):
[PATCH 01/15] ALSA: drivers: mpu401: constify pnp_device_id [PATCH 02/15] ALSA: es18xx: constify pnp_device_id and pnp_card_device_id [PATCH 03/15] ALSA: opl3sa2: constify pnp_device_id and pnp_card_device_id [PATCH 04/15] ALSA: ad1816a: constify pnp_card_device_id [PATCH 05/15] ALSA: als100: constify pnp_card_device_id
[PATCH 06/15] ALSA: azt2320: constify pnp_card_device_id [PATCH 07/15] ALSA: cmi8330: constify pnp_card_device_id [PATCH 08/15] ALSA: cs4236: constify pnp_card_device_id
[PATCH 09/15] ALSA: es1688: constify pnp_card_device_id
[PATCH 10/15] ALSA: gus: constify pnp_card_device_id
[PATCH 11/15] ALSA: msnd: constify pnp_card_device_id
[PATCH 12/15] ALSA: opti9xx: constify pnp_card_device_id [PATCH 13/15] ALSA: sb16: constify pnp_card_device_id
[PATCH 14/15] ALSA: sscape: constify pnp_card_device_id
[PATCH 15/15] ALSA: wavefront: constify pnp_card_device_id
sound/drivers/mpu401/mpu401.c | 2 +- sound/isa/ad1816a/ad1816a.c | 2 +- sound/isa/als100.c | 2 +- sound/isa/azt2320.c | 2 +- sound/isa/cmi8330.c | 2 +- sound/isa/cs423x/cs4236.c | 2 +- sound/isa/es1688/es1688.c | 2 +- sound/isa/es18xx.c | 4 ++-- sound/isa/gus/interwave.c | 2 +- sound/isa/msnd/msnd_pinnacle.c | 2 +- sound/isa/opl3sa2.c | 4 ++-- sound/isa/opti9xx/miro.c | 2 +- sound/isa/opti9xx/opti92x-ad1848.c | 2 +- sound/isa/sb/sb16.c | 2 +- sound/isa/sscape.c | 2 +- sound/isa/wavefront/wavefront.c | 2 +- 16 files changed, 18 insertions(+), 18 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/15 ALSA: drivers: mpu401: constify pnp_device_id
pnp_device_id are not supposed to change at runtime. All functions working with pnp_device_id provided by <linux/pnp.h> work with const pnp_device_id. So mark the non-const structs as const.
--- sound/drivers/mpu401/mpu401.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/drivers/mpu401/mpu401.c +1 -1
@@ -148,7 +148,7 @@ static struct platform_driver snd_mpu401_driver = {#define IO_EXTENT 2 -static struct pnp_device_id snd_mpu401_pnpids[] = { +static const struct pnp_device_id snd_mpu401_pnpids[] = { { .id ="PNPb006" }, { .id ="" } };
Signature · 1 line
2.7.4
PATCH 2/15 ALSA: es18xx: constify pnp_device_id and pnp_card_device_id
In reply to Arvind Yadav*_device_id are not supposed to change at runtime. All functions working with *_device_id provided by <linux/pnp.h> work with const *_device_id. So mark the non-const structs as const.
--- sound/isa/es18xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/isa/es18xx.c +2 -2
@@ -2017,7 +2017,7 @@ static int isa_registered;static int pnp_registered;static int pnpc_registered; -static struct pnp_device_id snd_audiodrive_pnpbiosids[] = { +static const struct pnp_device_id snd_audiodrive_pnpbiosids[] = { { .id ="ESS1869" }, { .id ="ESS1879" }, { .id ="" }/* end */
@@ -2062,7 +2062,7 @@ static int snd_audiodrive_pnp(int dev, struct snd_es18xx *chip,return 0 ; } -static struct pnp_card_device_id snd_audiodrive_pnpids[] = { +static const struct pnp_card_device_id snd_audiodrive_pnpids[] = {/* ESS 1868 (integrated on Compaq dual P-Pro motherboard and Genius 18PnP 3D) */ { .id ="ESS1868" , .devs = { {"ESS1868" }, {"ESS0000" } } },/* ESS 1868 (integrated on Maxisound Cards) */
Signature · 1 line
2.7.4
PATCH 4/15 ALSA: ad1816a: constify pnp_card_device_id
In reply to Arvind Yadavpnp_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.
--- sound/isa/ad1816a/ad1816a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/ad1816a/ad1816a.c +1 -1
@@ -63,7 +63,7 @@ MODULE_PARM_DESC(enable, "Enable ad1816a based soundcard.");module_param_array (clockfreq, int,NULL ,0444 );MODULE_PARM_DESC (clockfreq,"Clock frequency for ad1816a driver (default = 0)." ); -static struct pnp_card_device_id snd_ad1816a_pnpids[] = { +static const struct pnp_card_device_id snd_ad1816a_pnpids[] = {/* Analog Devices AD1815 */ { .id ="ADS7150" , .devs = { { .id ="ADS7150" }, { .id ="ADS7151" } } },/* Analog Device AD1816? */
Signature · 1 line
2.7.4
PATCH 5/15 ALSA: als100: constify pnp_card_device_id
In reply to Arvind Yadavpnp_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.
--- sound/isa/als100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/als100.c +1 -1
@@ -79,7 +79,7 @@ struct snd_card_als100 {struct snd_sb *chip; }; -static struct pnp_card_device_id snd_als100_pnpids[] = { +static const struct pnp_card_device_id snd_als100_pnpids[] = {/* DT197A30 */ { .id ="RWB1688" , .devs = { {"@@@0001" }, {"@X@0001" }, {"@H@0001" } },
Signature · 1 line
2.7.4
PATCH 8/15 ALSA: cs4236: constify pnp_card_device_id
In reply to Arvind Yadavpnp_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.
--- sound/isa/cs423x/cs4236.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/cs423x/cs4236.c +1 -1
@@ -149,7 +149,7 @@ static const struct pnp_device_id snd_cs423x_pnpbiosids[] = {MODULE_DEVICE_TABLE (pnp, snd_cs423x_pnpbiosids);#define CS423X_ISAPNP_DRIVER "cs4232_isapnp" -static struct pnp_card_device_id snd_cs423x_pnpids[] = { +static const struct pnp_card_device_id snd_cs423x_pnpids[] = {/* Philips PCA70PS */ { .id ="CSC0d32" , .devs = { {"CSC0000" }, {"CSC0010" }, {"PNPb006" } } },/* TerraTec Maestro 32/96 (CS4232) */
Signature · 1 line
2.7.4
Takashi Iwai
AppliedQuoted 5 lines · Arvind Yadav
*_device_idare not supposed to change at runtime. All functions working with*_device_idprovided by <linux/pnp.h> work with const*_device_id. So mark the non-const structs as const.
Quoted 16 lines
Arvind Yadav (15):
[PATCH 01/15] ALSA: drivers: mpu401: constifypnp_device_id[PATCH 02/15] ALSA: es18xx: constifypnp_device_idandpnp_card_device_id[PATCH 03/15] ALSA: opl3sa2: constifypnp_device_idandpnp_card_device_id[PATCH 04/15] ALSA: ad1816a: constifypnp_card_device_id[PATCH 05/15] ALSA: als100: constifypnp_card_device_id
[PATCH 06/15] ALSA: azt2320: constifypnp_card_device_id[PATCH 07/15] ALSA: cmi8330: constifypnp_card_device_id[PATCH 08/15] ALSA: cs4236: constifypnp_card_device_id
[PATCH 09/15] ALSA: es1688: constifypnp_card_device_id
[PATCH 10/15] ALSA: gus: constifypnp_card_device_id
[PATCH 11/15] ALSA: msnd: constifypnp_card_device_id
[PATCH 12/15] ALSA: opti9xx: constifypnp_card_device_id[PATCH 13/15] ALSA: sb16: constifypnp_card_device_id
[PATCH 14/15] ALSA: sscape: constifypnp_card_device_id
[PATCH 15/15] ALSA: wavefront: constifypnp_card_device_id
Applied all patches now. Thanks.
Takashi