Commit 3534b842a83549eb4d06613c616844c8762e9fd0
Committed by
Mark Brown
1 parent
051389e250
Exists in
master
and in
13 other branches
ASoC: tlv320aic23: add an of_match table
Add a device tree match table. This serves to make the driver's support of device tree more explicit. Perhaps the fallback for DT matching to using the i2c_device_id table will go away one day, since it fails in face of devices from different vendors with the same name. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff
sound/soc/codecs/tlv320aic23-i2c.c
... | ... | @@ -43,9 +43,16 @@ |
43 | 43 | |
44 | 44 | MODULE_DEVICE_TABLE(i2c, tlv320aic23_id); |
45 | 45 | |
46 | +static const struct of_device_id tlv320aic23_of_match[] = { | |
47 | + { .compatible = "ti,tlv320aic23", }, | |
48 | + { } | |
49 | +}; | |
50 | +MODULE_DEVICE_TABLE(of, tlv320aic23_of_match); | |
51 | + | |
46 | 52 | static struct i2c_driver tlv320aic23_i2c_driver = { |
47 | 53 | .driver = { |
48 | 54 | .name = "tlv320aic23-codec", |
55 | + .of_match_table = of_match_ptr(tlv320aic23_of_match), | |
49 | 56 | }, |
50 | 57 | .probe = tlv320aic23_i2c_probe, |
51 | 58 | .remove = __exit_p(tlv320aic23_i2c_remove), |