diff options
-rw-r--r-- | Documentation/devicetree/bindings/sound/max98095.txt | 16 | ||||
-rw-r--r-- | sound/soc/codecs/max98095.c | 7 |
2 files changed, 23 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/max98095.txt b/Documentation/devicetree/bindings/sound/max98095.txt new file mode 100644 index 000000000000..bacbeaac72b5 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/max98095.txt | |||
@@ -0,0 +1,16 @@ | |||
1 | MAX98095 audio CODEC | ||
2 | |||
3 | This device supports I2C only. | ||
4 | |||
5 | Required properties: | ||
6 | |||
7 | - compatible : "maxim,max98095". | ||
8 | |||
9 | - reg : The I2C address of the device. | ||
10 | |||
11 | Example: | ||
12 | |||
13 | max98095: codec@11 { | ||
14 | compatible = "maxim,max98095"; | ||
15 | reg = <0x11>; | ||
16 | }; | ||
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[] = { | |||
2399 | }; | 2399 | }; |
2400 | MODULE_DEVICE_TABLE(i2c, max98095_i2c_id); | 2400 | MODULE_DEVICE_TABLE(i2c, max98095_i2c_id); |
2401 | 2401 | ||
2402 | static const struct of_device_id max98095_of_match[] = { | ||
2403 | { .compatible = "maxim,max98095", }, | ||
2404 | { } | ||
2405 | }; | ||
2406 | MODULE_DEVICE_TABLE(of, max98095_of_match); | ||
2407 | |||
2402 | static struct i2c_driver max98095_i2c_driver = { | 2408 | static struct i2c_driver max98095_i2c_driver = { |
2403 | .driver = { | 2409 | .driver = { |
2404 | .name = "max98095", | 2410 | .name = "max98095", |
2405 | .owner = THIS_MODULE, | 2411 | .owner = THIS_MODULE, |
2412 | .of_match_table = of_match_ptr(max98095_of_match), | ||
2406 | }, | 2413 | }, |
2407 | .probe = max98095_i2c_probe, | 2414 | .probe = max98095_i2c_probe, |
2408 | .remove = max98095_i2c_remove, | 2415 | .remove = max98095_i2c_remove, |