diff options
author | Daniel Mack <zonque@gmail.com> | 2012-07-25 09:28:34 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-03 18:03:58 -0400 |
commit | 85d07e4d625d6511934799f7df93e9111ac2c88b (patch) | |
tree | d9ada0cbb9d03c39303c575b9fe2ecdd0378c56a /sound/soc/codecs/cs4270.c | |
parent | d9f34df782b2aa7d233cb08850c8b12fdb37d18a (diff) |
ASoC: add DT bindings for cs4270
Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/cs4270.c')
-rw-r--r-- | sound/soc/codecs/cs4270.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c index 047917f0b8ae..4b71b01ecbcd 100644 --- a/sound/soc/codecs/cs4270.c +++ b/sound/soc/codecs/cs4270.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/i2c.h> | 29 | #include <linux/i2c.h> |
30 | #include <linux/delay.h> | 30 | #include <linux/delay.h> |
31 | #include <linux/regulator/consumer.h> | 31 | #include <linux/regulator/consumer.h> |
32 | #include <linux/of_device.h> | ||
32 | 33 | ||
33 | /* | 34 | /* |
34 | * The codec isn't really big-endian or little-endian, since the I2S | 35 | * The codec isn't really big-endian or little-endian, since the I2S |
@@ -639,6 +640,15 @@ static const struct snd_soc_codec_driver soc_codec_device_cs4270 = { | |||
639 | .reg_cache_default = cs4270_default_reg_cache, | 640 | .reg_cache_default = cs4270_default_reg_cache, |
640 | }; | 641 | }; |
641 | 642 | ||
643 | /* | ||
644 | * cs4270_of_match - the device tree bindings | ||
645 | */ | ||
646 | static const struct of_device_id cs4270_of_match[] = { | ||
647 | { .compatible = "cirrus,cs4270", }, | ||
648 | { } | ||
649 | }; | ||
650 | MODULE_DEVICE_TABLE(of, cs4270_of_match); | ||
651 | |||
642 | /** | 652 | /** |
643 | * cs4270_i2c_probe - initialize the I2C interface of the CS4270 | 653 | * cs4270_i2c_probe - initialize the I2C interface of the CS4270 |
644 | * @i2c_client: the I2C client object | 654 | * @i2c_client: the I2C client object |
@@ -718,6 +728,7 @@ static struct i2c_driver cs4270_i2c_driver = { | |||
718 | .driver = { | 728 | .driver = { |
719 | .name = "cs4270", | 729 | .name = "cs4270", |
720 | .owner = THIS_MODULE, | 730 | .owner = THIS_MODULE, |
731 | .of_match_table = cs4270_of_match, | ||
721 | }, | 732 | }, |
722 | .id_table = cs4270_id, | 733 | .id_table = cs4270_id, |
723 | .probe = cs4270_i2c_probe, | 734 | .probe = cs4270_i2c_probe, |