* [PATCH] ASoC: ak4642: code clean up
@ 2010-09-16 4:06 Kuninori Morimoto
2010-09-16 13:12 ` Liam Girdwood
0 siblings, 1 reply; 3+ messages in thread
From: Kuninori Morimoto @ 2010-09-16 4:06 UTC (permalink / raw)
To: Mark Brown; +Cc: Linux-ALSA, Liam Girdwood
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
sound/soc/codecs/ak4642.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c
index c84cc9c..a95ff4f 100644
--- a/sound/soc/codecs/ak4642.c
+++ b/sound/soc/codecs/ak4642.c
@@ -422,7 +422,7 @@ static int ak4642_probe(struct snd_soc_codec *codec)
dev_info(codec->dev, "AK4642 Audio Codec %s", AK4642_VERSION);
codec->hw_write = (hw_write_t)i2c_master_send;
- codec->control_data = ak4642->control_data;
+ codec->control_data = ak4642->control_data;
snd_soc_add_controls(codec, ak4642_snd_controls,
ARRAY_SIZE(ak4642_snd_controls));
@@ -431,12 +431,12 @@ static int ak4642_probe(struct snd_soc_codec *codec)
}
static struct snd_soc_codec_driver soc_codec_dev_ak4642 = {
- .probe = ak4642_probe,
- .resume = ak4642_resume,
- .read = ak4642_read_reg_cache,
- .write = ak4642_write,
- .reg_cache_size = ARRAY_SIZE(ak4642_reg),
- .reg_word_size = sizeof(u8),
+ .probe = ak4642_probe,
+ .resume = ak4642_resume,
+ .read = ak4642_read_reg_cache,
+ .write = ak4642_write,
+ .reg_cache_size = ARRAY_SIZE(ak4642_reg),
+ .reg_word_size = sizeof(u8),
.reg_cache_default = ak4642_reg,
};
@@ -448,7 +448,7 @@ static __devinit int ak4642_i2c_probe(struct i2c_client *i2c,
int ret;
ak4642 = kzalloc(sizeof(struct ak4642_priv), GFP_KERNEL);
- if (ak4642 == NULL)
+ if (!ak4642)
return -ENOMEM;
i2c_set_clientdata(i2c, ak4642);
@@ -481,9 +481,9 @@ static struct i2c_driver ak4642_i2c_driver = {
.name = "ak4642-codec",
.owner = THIS_MODULE,
},
- .probe = ak4642_i2c_probe,
- .remove = __devexit_p(ak4642_i2c_remove),
- .id_table = ak4642_i2c_id,
+ .probe = ak4642_i2c_probe,
+ .remove = __devexit_p(ak4642_i2c_remove),
+ .id_table = ak4642_i2c_id,
};
#endif
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: ak4642: code clean up
2010-09-16 4:06 [PATCH] ASoC: ak4642: code clean up Kuninori Morimoto
@ 2010-09-16 13:12 ` Liam Girdwood
2010-09-16 13:15 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Liam Girdwood @ 2010-09-16 13:12 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: Linux-ALSA, Mark Brown
On Thu, 2010-09-16 at 13:06 +0900, Kuninori Morimoto wrote:
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
> sound/soc/codecs/ak4642.c | 22 +++++++++++-----------
> 1 files changed, 11 insertions(+), 11 deletions(-)
Both ak4642 and da7210 cleanups
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
--
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: ak4642: code clean up
2010-09-16 13:12 ` Liam Girdwood
@ 2010-09-16 13:15 ` Mark Brown
0 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 2010-09-16 13:15 UTC (permalink / raw)
To: Liam Girdwood; +Cc: Linux-ALSA, Kuninori Morimoto
On Thu, Sep 16, 2010 at 02:12:27PM +0100, Liam Girdwood wrote:
> On Thu, 2010-09-16 at 13:06 +0900, Kuninori Morimoto wrote:
> > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> > ---
> > sound/soc/codecs/ak4642.c | 22 +++++++++++-----------
> > 1 files changed, 11 insertions(+), 11 deletions(-)
> Both ak4642 and da7210 cleanups
> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-16 13:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-16 4:06 [PATCH] ASoC: ak4642: code clean up Kuninori Morimoto
2010-09-16 13:12 ` Liam Girdwood
2010-09-16 13:15 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.