]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: cs42l51: add Device Tree binding to cs42l51
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 30 Jan 2014 17:14:05 +0000 (18:14 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 11 Feb 2014 12:35:01 +0000 (12:35 +0000)
This commit adds a trivial Device Tree binding to the I2C-based
cs42l51 sound codec, so that it can be used from Device Tree based
platforms.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/i2c/trivial-devices.txt
sound/soc/codecs/cs42l51.c

index 1a1ac2e560e94a083c5df71fa9bad004e12df7ab..f47e56bcf78d49bea32e9b259cd09a44638f4e81 100644 (file)
@@ -18,6 +18,7 @@ atmel,24c02           i2c serial eeprom  (24cxx)
 atmel,at97sc3204t      i2c trusted platform module (TPM)
 capella,cm32181                CM32181: Ambient Light Sensor
 catalyst,24c32         i2c serial eeprom
+cirrus,cs42l51         Cirrus Logic CS42L51 audio codec
 dallas,ds1307          64 x 8, Serial, I2C Real-Time Clock
 dallas,ds1338          I2C RTC with 56-Byte NV RAM
 dallas,ds1339          I2C Serial Real-Time Clock
index 6e9ea8379a91272de475985429a21643fbabec22..824cdf4d4974a6e5e21a11dda136e2a05bff33a3 100644 (file)
@@ -600,10 +600,17 @@ static const struct i2c_device_id cs42l51_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, cs42l51_id);
 
+static const struct of_device_id cs42l51_of_match[] = {
+       { .compatible = "cirrus,cs42l51", },
+       { }
+};
+MODULE_DEVICE_TABLE(of, cs42l51_of_match);
+
 static struct i2c_driver cs42l51_i2c_driver = {
        .driver = {
                .name = "cs42l51-codec",
                .owner = THIS_MODULE,
+               .of_match_table = cs42l51_of_match,
        },
        .id_table = cs42l51_id,
        .probe = cs42l51_i2c_probe,