Skip to content

Commit

Permalink
ASoC: gtm601: Constify soc_codec_dev_gtm601
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Jul 7, 2015
1 parent d497963 commit 02a9547
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sound/soc/codecs/gtm601.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static struct snd_soc_dai_driver gtm601_dai = {
},
};

static struct snd_soc_codec_driver soc_codec_dev_gtm601 = {
static const struct snd_soc_codec_driver soc_codec_dev_gtm601 = {
.dapm_widgets = gtm601_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(gtm601_dapm_widgets),
.dapm_routes = gtm601_dapm_routes,
Expand Down Expand Up @@ -80,10 +80,9 @@ MODULE_DEVICE_TABLE(of, gtm601_codec_of_match);

static struct platform_driver gtm601_codec_driver = {
.driver = {
.name = "gtm601",
.of_match_table = of_match_ptr(gtm601_codec_of_match),
.name = "gtm601",
.of_match_table = of_match_ptr(gtm601_codec_of_match),
},

.probe = gtm601_platform_probe,
.remove = gtm601_platform_remove,
};
Expand Down

0 comments on commit 02a9547

Please sign in to comment.