Skip to content

Commit

Permalink
ASoC: max98090: Add max98091 compatible string
Browse files Browse the repository at this point in the history
The MAX98091 CODEC is the same as MAX98090 CODEC, but with an extra
microphone. Existing driver for MAX98090 CODEC already has support
for MAX98091 CODEC. Adding proper compatible string so that MAX98091
CODEC can be specified from device tree.

Signed-off-by: Wonjoon Lee <woojoo.lee@samsung.com>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Tushar Behera <tushar.b@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Wonjoon Lee authored and Mark Brown committed Jun 30, 2014
1 parent 6c49a98 commit 053e69d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/sound/max98090.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This device supports I2C only.

Required properties:

- compatible : "maxim,max98090".
- compatible : "maxim,max98090" or "maxim,max98091".

- reg : The I2C address of the device.

Expand Down
2 changes: 2 additions & 0 deletions sound/soc/codecs/max98090.c
Original file line number Diff line number Diff line change
Expand Up @@ -2447,12 +2447,14 @@ static const struct dev_pm_ops max98090_pm = {

static const struct i2c_device_id max98090_i2c_id[] = {
{ "max98090", MAX98090 },
{ "max98091", MAX98091 },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98090_i2c_id);

static const struct of_device_id max98090_of_match[] = {
{ .compatible = "maxim,max98090", },
{ .compatible = "maxim,max98091", },
{ }
};
MODULE_DEVICE_TABLE(of, max98090_of_match);
Expand Down

0 comments on commit 053e69d

Please sign in to comment.