diff options
| -rw-r--r-- | sound/soc/codecs/max98357a.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sound/soc/codecs/max98357a.c b/sound/soc/codecs/max98357a.c index e9e6efbc21dd..4ee23fbc4e12 100644 --- a/sound/soc/codecs/max98357a.c +++ b/sound/soc/codecs/max98357a.c | |||
| @@ -26,8 +26,6 @@ | |||
| 26 | #include <sound/soc-dai.h> | 26 | #include <sound/soc-dai.h> |
| 27 | #include <sound/soc-dapm.h> | 27 | #include <sound/soc-dapm.h> |
| 28 | 28 | ||
| 29 | #define DRV_NAME "max98357a" | ||
| 30 | |||
| 31 | static int max98357a_daiops_trigger(struct snd_pcm_substream *substream, | 29 | static int max98357a_daiops_trigger(struct snd_pcm_substream *substream, |
| 32 | int cmd, struct snd_soc_dai *dai) | 30 | int cmd, struct snd_soc_dai *dai) |
| 33 | { | 31 | { |
| @@ -87,9 +85,9 @@ static struct snd_soc_dai_ops max98357a_dai_ops = { | |||
| 87 | }; | 85 | }; |
| 88 | 86 | ||
| 89 | static struct snd_soc_dai_driver max98357a_dai_driver = { | 87 | static struct snd_soc_dai_driver max98357a_dai_driver = { |
| 90 | .name = DRV_NAME, | 88 | .name = "max98357a", |
| 91 | .playback = { | 89 | .playback = { |
| 92 | .stream_name = DRV_NAME "-playback", | 90 | .stream_name = "max98357a-playback", |
| 93 | .formats = SNDRV_PCM_FMTBIT_S16 | | 91 | .formats = SNDRV_PCM_FMTBIT_S16 | |
| 94 | SNDRV_PCM_FMTBIT_S24 | | 92 | SNDRV_PCM_FMTBIT_S24 | |
| 95 | SNDRV_PCM_FMTBIT_S32, | 93 | SNDRV_PCM_FMTBIT_S32, |
| @@ -127,7 +125,7 @@ static int max98357a_platform_remove(struct platform_device *pdev) | |||
| 127 | 125 | ||
| 128 | #ifdef CONFIG_OF | 126 | #ifdef CONFIG_OF |
| 129 | static const struct of_device_id max98357a_device_id[] = { | 127 | static const struct of_device_id max98357a_device_id[] = { |
| 130 | { .compatible = "maxim," DRV_NAME, }, | 128 | { .compatible = "maxim,max98357a" }, |
| 131 | {} | 129 | {} |
| 132 | }; | 130 | }; |
| 133 | MODULE_DEVICE_TABLE(of, max98357a_device_id); | 131 | MODULE_DEVICE_TABLE(of, max98357a_device_id); |
| @@ -135,7 +133,7 @@ MODULE_DEVICE_TABLE(of, max98357a_device_id); | |||
| 135 | 133 | ||
| 136 | static struct platform_driver max98357a_platform_driver = { | 134 | static struct platform_driver max98357a_platform_driver = { |
| 137 | .driver = { | 135 | .driver = { |
| 138 | .name = DRV_NAME, | 136 | .name = "max98357a", |
| 139 | .of_match_table = of_match_ptr(max98357a_device_id), | 137 | .of_match_table = of_match_ptr(max98357a_device_id), |
| 140 | }, | 138 | }, |
| 141 | .probe = max98357a_platform_probe, | 139 | .probe = max98357a_platform_probe, |
| @@ -145,4 +143,3 @@ module_platform_driver(max98357a_platform_driver); | |||
| 145 | 143 | ||
| 146 | MODULE_DESCRIPTION("Maxim MAX98357A Codec Driver"); | 144 | MODULE_DESCRIPTION("Maxim MAX98357A Codec Driver"); |
| 147 | MODULE_LICENSE("GPL v2"); | 145 | MODULE_LICENSE("GPL v2"); |
| 148 | MODULE_ALIAS("platform:" DRV_NAME); | ||
