diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2014-04-23 14:43:58 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-23 11:37:27 +0100 |
commit | c4839c87f508bdb2e5d735a064124dd6289a2853 (patch) | |
tree | cd064154f84b35884541b704951641a3a6bc57ef /sound/soc/codecs/max98095.c | |
parent | c9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff) | |
download | linux-stable-c4839c87f508bdb2e5d735a064124dd6289a2853.tar.gz linux-stable-c4839c87f508bdb2e5d735a064124dd6289a2853.tar.bz2 linux-stable-c4839c87f508bdb2e5d735a064124dd6289a2853.zip |
ASoC: max98095: Add an explicit of_match_table
Create an explicit of_match_table entry for MAX98095 codec. Also
add a binding Documentation for this compatible string.
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/max98095.c')
-rw-r--r-- | sound/soc/codecs/max98095.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98095.c b/sound/soc/codecs/max98095.c index 03f0536e6f61..8e548af9eac8 100644 --- a/sound/soc/codecs/max98095.c +++ b/sound/soc/codecs/max98095.c @@ -2399,10 +2399,17 @@ static const struct i2c_device_id max98095_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, max98095_i2c_id); +static const struct of_device_id max98095_of_match[] = { + { .compatible = "maxim,max98095", }, + { } +}; +MODULE_DEVICE_TABLE(of, max98095_of_match); + static struct i2c_driver max98095_i2c_driver = { .driver = { .name = "max98095", .owner = THIS_MODULE, + .of_match_table = of_match_ptr(max98095_of_match), }, .probe = max98095_i2c_probe, .remove = max98095_i2c_remove, |