aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/sn95031.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/sn95031.c')
-rw-r--r--sound/soc/codecs/sn95031.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c
index 887d618f4a6..f99baa0b8c3 100644
--- a/sound/soc/codecs/sn95031.c
+++ b/sound/soc/codecs/sn95031.c
@@ -698,21 +698,21 @@ static int sn95031_pcm_hw_params(struct snd_pcm_substream *substream,
698} 698}
699 699
700/* Codec DAI section */ 700/* Codec DAI section */
701static struct snd_soc_dai_ops sn95031_headset_dai_ops = { 701static const struct snd_soc_dai_ops sn95031_headset_dai_ops = {
702 .digital_mute = sn95031_pcm_hs_mute, 702 .digital_mute = sn95031_pcm_hs_mute,
703 .hw_params = sn95031_pcm_hw_params, 703 .hw_params = sn95031_pcm_hw_params,
704}; 704};
705 705
706static struct snd_soc_dai_ops sn95031_speaker_dai_ops = { 706static const struct snd_soc_dai_ops sn95031_speaker_dai_ops = {
707 .digital_mute = sn95031_pcm_spkr_mute, 707 .digital_mute = sn95031_pcm_spkr_mute,
708 .hw_params = sn95031_pcm_hw_params, 708 .hw_params = sn95031_pcm_hw_params,
709}; 709};
710 710
711static struct snd_soc_dai_ops sn95031_vib1_dai_ops = { 711static const struct snd_soc_dai_ops sn95031_vib1_dai_ops = {
712 .hw_params = sn95031_pcm_hw_params, 712 .hw_params = sn95031_pcm_hw_params,
713}; 713};
714 714
715static struct snd_soc_dai_ops sn95031_vib2_dai_ops = { 715static const struct snd_soc_dai_ops sn95031_vib2_dai_ops = {
716 .hw_params = sn95031_pcm_hw_params, 716 .hw_params = sn95031_pcm_hw_params,
717}; 717};
718 718
@@ -920,19 +920,7 @@ static struct platform_driver sn95031_codec_driver = {
920 .remove = __devexit_p(sn95031_device_remove), 920 .remove = __devexit_p(sn95031_device_remove),
921}; 921};
922 922
923static int __init sn95031_init(void) 923module_platform_driver(sn95031_codec_driver);
924{
925 pr_debug("driver init called\n");
926 return platform_driver_register(&sn95031_codec_driver);
927}
928module_init(sn95031_init);
929
930static void __exit sn95031_exit(void)
931{
932 pr_debug("driver exit called\n");
933 platform_driver_unregister(&sn95031_codec_driver);
934}
935module_exit(sn95031_exit);
936 924
937MODULE_DESCRIPTION("ASoC TI SN95031 codec driver"); 925MODULE_DESCRIPTION("ASoC TI SN95031 codec driver");
938MODULE_AUTHOR("Vinod Koul <vinod.koul@intel.com>"); 926MODULE_AUTHOR("Vinod Koul <vinod.koul@intel.com>");