[ALSA] isa_bus device/driver naming
authorRene Herman <rene.herman@gmail.com>
Tue, 20 Mar 2007 10:33:46 +0000 (11:33 +0100)
committerJaroslav Kysela <perex@suse.cz>
Fri, 11 May 2007 14:55:50 +0000 (16:55 +0200)
isa_bus: delete snd_ prefix from the (sysfs visible) device/driver names.

Signed-off-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
12 files changed:
sound/isa/cmi8330.c
sound/isa/cs423x/cs4236.c
sound/isa/es18xx.c
sound/isa/gus/gusmax.c
sound/isa/opl3sa2.c
sound/isa/opti9xx/miro.c
sound/isa/opti9xx/opti92x-ad1848.c
sound/isa/sb/sb16.c
sound/isa/sb/sb8.c
sound/isa/sgalaxy.c
sound/isa/sscape.c
sound/isa/wavefront/wavefront.c

index 456156de0791054e7d016545b9fee7abe23641bd..214d65d94c4538541af52fdc6be4dc00d35ab7c3 100644 (file)
@@ -601,7 +601,7 @@ static int snd_cmi8330_isa_resume(struct device *dev, unsigned int n)
 }
 #endif
 
-#define CMI8330_DRIVER "snd_cmi8330"
+#define DEV_NAME       "cmi8330"
 
 static struct isa_driver snd_cmi8330_driver = {
        .match          = snd_cmi8330_isa_match,
@@ -612,7 +612,7 @@ static struct isa_driver snd_cmi8330_driver = {
        .resume         = snd_cmi8330_isa_resume,
 #endif
        .driver         = {
-               .name   = CMI8330_DRIVER
+               .name   = DEV_NAME
        },
 };
 
index 7d9d4d562e90bccf9c91b2e0fb718eee7d322b96..87f1392a2fa79f4310e6ced4e3829070af372840 100644 (file)
@@ -75,10 +75,10 @@ MODULE_SUPPORTED_DEVICE("{{Crystal Semiconductors,CS4235},"
 
 #ifdef CS4232
 #define IDENT "CS4232"
-#define CS423X_DRIVER "snd_cs4232"
+#define DEV_NAME "cs4232"
 #else
 #define IDENT "CS4236+"
-#define CS423X_DRIVER "snd_cs4236"
+#define DEV_NAME "cs4236"
 #endif
 
 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;     /* Index 0-MAX */
@@ -630,7 +630,7 @@ static struct isa_driver cs423x_isa_driver = {
        .resume         = snd_cs423x_isa_resume,
 #endif
        .driver         = {
-               .name   = CS423X_DRIVER
+               .name   = DEV_NAME
        },
 };
 
index 12b61af1a4ef5f076cae77bcb7a9bd13fc6b1d56..d2a9c7df0ce5100a6a6cc4a9caaa5260d97f1202 100644 (file)
@@ -2318,7 +2318,7 @@ static int snd_es18xx_isa_resume(struct device *dev, unsigned int n)
 }
 #endif
 
-#define ES18XX_DRIVER  "snd_es18xx"
+#define DEV_NAME "es18xx"
 
 static struct isa_driver snd_es18xx_isa_driver = {
        .match          = snd_es18xx_isa_match,
@@ -2329,7 +2329,7 @@ static struct isa_driver snd_es18xx_isa_driver = {
        .resume         = snd_es18xx_isa_resume,
 #endif
        .driver         = {
-               .name   = ES18XX_DRIVER
+               .name   = DEV_NAME
        },
 };
 
index a0d2f8fc273875cf3728353991f269cce36af099..708783d4351fa8317482b86c06717b716ea3c1cc 100644 (file)
@@ -358,7 +358,7 @@ static int __devexit snd_gusmax_remove(struct device *devptr, unsigned int dev)
        return 0;
 }
 
-#define GUSMAX_DRIVER  "snd_gusmax"
+#define DEV_NAME "gusmax"
 
 static struct isa_driver snd_gusmax_driver = {
        .match          = snd_gusmax_match,
@@ -366,7 +366,7 @@ static struct isa_driver snd_gusmax_driver = {
        .remove         = __devexit_p(snd_gusmax_remove),
        /* FIXME: suspend/resume */
        .driver         = {
-               .name   = GUSMAX_DRIVER
+               .name   = DEV_NAME
        },
 };
 
index 50a812f1c804b0af35a2b60df6c080bcecaba2fa..48743eb85fb64cf2b3a8650dfdbf7b7f6056f10b 100644 (file)
@@ -947,7 +947,7 @@ static int snd_opl3sa2_isa_resume(struct device *dev, unsigned int n)
 }
 #endif
 
-#define OPL3SA2_DRIVER "snd_opl3sa2"
+#define DEV_NAME "opl3sa2"
 
 static struct isa_driver snd_opl3sa2_isa_driver = {
        .match          = snd_opl3sa2_isa_match,
@@ -958,7 +958,7 @@ static struct isa_driver snd_opl3sa2_isa_driver = {
        .resume         = snd_opl3sa2_isa_resume,
 #endif
        .driver         = {
-               .name   = OPL3SA2_DRIVER
+               .name   = DEV_NAME
        },
 };
 
index 33471bdbe26944c0d45dea1f92ce779b7b19f879..cd29b30b362e4529601a105a5e26a05ca2da6e5a 100644 (file)
@@ -137,8 +137,6 @@ struct snd_miro {
 
 static void snd_miro_proc_init(struct snd_miro * miro);
 
-#define DRIVER_NAME "snd-miro"
-
 static char * snd_opti9xx_names[] = {
        "unkown",
        "82C928", "82C929",
@@ -1423,13 +1421,15 @@ static int __devexit snd_miro_remove(struct device *devptr, unsigned int dev)
        return 0;
 }
 
+#define DEV_NAME "miro"
+
 static struct isa_driver snd_miro_driver = {
        .match          = snd_miro_match,
        .probe          = snd_miro_probe,
        .remove         = __devexit_p(snd_miro_remove),
        /* FIXME: suspend/resume */
        .driver         = {
-               .name   = DRIVER_NAME
+               .name   = DEV_NAME
        },
 };
 
index 95d0ab124d5b76374bb5b472fbee15b957164156..60c120ffb9de9a664afcfaa26f36a2670823ebba 100644 (file)
@@ -280,10 +280,10 @@ MODULE_DEVICE_TABLE(pnp_card, snd_opti9xx_pnpids);
 #endif /* CONFIG_PNP */
 
 #ifdef OPTi93X
-#define DRIVER_NAME    "snd-card-opti93x"
+#define DEV_NAME "opti93x"
 #else
-#define DRIVER_NAME    "snd-card-opti92x"
-#endif /* OPTi93X */
+#define DEV_NAME "opti92x"
+#endif
 
 static char * snd_opti9xx_names[] = {
        "unkown",
@@ -1289,7 +1289,7 @@ static int snd_opti93x_create(struct snd_card *card, struct snd_opti9xx *chip,
        }
        codec->dma2 = chip->dma2;
 
-       if (request_irq(chip->irq, snd_opti93x_interrupt, IRQF_DISABLED, DRIVER_NAME" - WSS", codec)) {
+       if (request_irq(chip->irq, snd_opti93x_interrupt, IRQF_DISABLED, DEV_NAME" - WSS", codec)) {
                snd_printk(KERN_ERR "opti9xx: can't grab IRQ %d\n", chip->irq);
                snd_opti93x_free(codec);
                return -EBUSY;
@@ -2015,7 +2015,7 @@ static struct isa_driver snd_opti9xx_driver = {
        .remove         = __devexit_p(snd_opti9xx_isa_remove),
        /* FIXME: suspend/resume */
        .driver         = {
-               .name   = DRIVER_NAME
+               .name   = DEV_NAME
        },
 };
 
index 8b734a2390087624dbec73f1f9104658e8583683..2a19b0a39eda1ff139cabbfc042b5ad6b9d63708 100644 (file)
@@ -615,9 +615,9 @@ static int snd_sb16_isa_resume(struct device *dev, unsigned int n)
 #endif
 
 #ifdef SNDRV_SBAWE
-#define SND_SB16_DRIVER        "snd_sbawe"
+#define DEV_NAME "sbawe"
 #else
-#define SND_SB16_DRIVER        "snd_sb16"
+#define DEV_NAME "sb16"
 #endif
 
 static struct isa_driver snd_sb16_isa_driver = {
@@ -629,7 +629,7 @@ static struct isa_driver snd_sb16_isa_driver = {
        .resume         = snd_sb16_isa_resume,
 #endif
        .driver         = {
-               .name   = SND_SB16_DRIVER
+               .name   = DEV_NAME
        },
 };
 
index b7de1bc0e8a418b8cb5983bc25984540c7030283..a1b3786b391ea7fc56e309c263b27bcf2575622f 100644 (file)
@@ -239,7 +239,7 @@ static int snd_sb8_resume(struct device *dev, unsigned int n)
 }
 #endif
 
-#define SND_SB8_DRIVER "snd_sb8"
+#define DEV_NAME "sb8"
 
 static struct isa_driver snd_sb8_driver = {
        .match          = snd_sb8_match,
@@ -250,7 +250,7 @@ static struct isa_driver snd_sb8_driver = {
        .resume         = snd_sb8_resume,
 #endif
        .driver         = {
-               .name   = SND_SB8_DRIVER
+               .name   = DEV_NAME 
        },
 };
 
index 19e0b0edb8c46028a65242a548a172f2cdb5c876..922519def0997f2ff21ee74fc84ecb073012411c 100644 (file)
@@ -334,7 +334,7 @@ static int snd_sgalaxy_resume(struct device *pdev, unsigned int n)
 }
 #endif
 
-#define SND_SGALAXY_DRIVER     "snd_sgalaxy"
+#define DEV_NAME "sgalaxy"
 
 static struct isa_driver snd_sgalaxy_driver = {
        .match          = snd_sgalaxy_match,
@@ -345,7 +345,7 @@ static struct isa_driver snd_sgalaxy_driver = {
        .resume         = snd_sgalaxy_resume,
 #endif
        .driver         = {
-               .name   = SND_SGALAXY_DRIVER
+               .name   = DEV_NAME
        },
 };
 
index 369de44a69041b0cba9fa72e5855cdecafdf45f6..08c14978558ce20ed9dc69ae515421f79e969ed4 100644 (file)
@@ -1296,7 +1296,7 @@ static int __devexit snd_sscape_remove(struct device *devptr, unsigned int dev)
        return 0;
 }
 
-#define SSCAPE_DRIVER  "snd_sscape"
+#define DEV_NAME "sscape"
 
 static struct isa_driver snd_sscape_driver = {
        .match          = snd_sscape_match,
@@ -1304,7 +1304,7 @@ static struct isa_driver snd_sscape_driver = {
        .remove         = __devexit_p(snd_sscape_remove),
        /* FIXME: suspend/resume */
        .driver         = {
-               .name   = SSCAPE_DRIVER
+               .name   = DEV_NAME
        },
 };
 
index 6f143275e3b32c202d1f2c8388de2f31a3c35532..ae2038e682f0412238c69ce8a323518561c3da2c 100644 (file)
@@ -633,7 +633,7 @@ static int __devexit snd_wavefront_isa_remove(struct device *devptr,
        return 0;
 }
 
-#define WAVEFRONT_DRIVER       "snd_wavefront"
+#define DEV_NAME "wavefront"
 
 static struct isa_driver snd_wavefront_driver = {
        .match          = snd_wavefront_isa_match,
@@ -641,7 +641,7 @@ static struct isa_driver snd_wavefront_driver = {
        .remove         = __devexit_p(snd_wavefront_isa_remove),
        /* FIXME: suspend, resume */
        .driver         = {
-               .name   = WAVEFRONT_DRIVER
+               .name   = DEV_NAME
        },
 };