aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-07 00:57:19 -0400
committerMark Brown <broonie@kernel.org>2015-07-07 09:23:53 -0400
commit02a9547e9b3f10d73fde66f52fc8b2a375a300cd (patch)
tree642ad58ac3787a19c5aeeb51e584ac058ed0e63b
parentd49796317d4968b29ccdee7b9586385ae20b60a3 (diff)
ASoC: gtm601: Constify soc_codec_dev_gtm601
Also clean up the code a bit by fixing indent. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/gtm601.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/codecs/gtm601.c b/sound/soc/codecs/gtm601.c
index 12d15e5b50f0..0b80052996d3 100644
--- a/sound/soc/codecs/gtm601.c
+++ b/sound/soc/codecs/gtm601.c
@@ -51,7 +51,7 @@ static struct snd_soc_dai_driver gtm601_dai = {
51 }, 51 },
52}; 52};
53 53
54static struct snd_soc_codec_driver soc_codec_dev_gtm601 = { 54static const struct snd_soc_codec_driver soc_codec_dev_gtm601 = {
55 .dapm_widgets = gtm601_dapm_widgets, 55 .dapm_widgets = gtm601_dapm_widgets,
56 .num_dapm_widgets = ARRAY_SIZE(gtm601_dapm_widgets), 56 .num_dapm_widgets = ARRAY_SIZE(gtm601_dapm_widgets),
57 .dapm_routes = gtm601_dapm_routes, 57 .dapm_routes = gtm601_dapm_routes,
@@ -80,10 +80,9 @@ MODULE_DEVICE_TABLE(of, gtm601_codec_of_match);
80 80
81static struct platform_driver gtm601_codec_driver = { 81static struct platform_driver gtm601_codec_driver = {
82 .driver = { 82 .driver = {
83 .name = "gtm601", 83 .name = "gtm601",
84 .of_match_table = of_match_ptr(gtm601_codec_of_match), 84 .of_match_table = of_match_ptr(gtm601_codec_of_match),
85 }, 85 },
86
87 .probe = gtm601_platform_probe, 86 .probe = gtm601_platform_probe,
88 .remove = gtm601_platform_remove, 87 .remove = gtm601_platform_remove,
89}; 88};