diff options
author | Olivier Moysan <olivier.moysan@st.com> | 2019-04-03 15:23:32 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-04 15:52:52 +0200 |
commit | f77b6ea70f3a672092e2d7eca2e67be09c0b8c54 (patch) | |
tree | 8f7581c4f51cc6f6d835ffc45359e63a6862714e /sound/soc/codecs/cs42l51-i2c.c | |
parent | ASoC: dt-bindings: update cs42l51 bindings (diff) | |
download | linux-f77b6ea70f3a672092e2d7eca2e67be09c0b8c54.tar.xz linux-f77b6ea70f3a672092e2d7eca2e67be09c0b8c54.zip |
ASoC: cs42l51: add regulator management
Add cs42l51 audio codec power supply management
through regulator framework.
Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs42l51-i2c.c')
-rw-r--r-- | sound/soc/codecs/cs42l51-i2c.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs42l51-i2c.c b/sound/soc/codecs/cs42l51-i2c.c index 4b5731a41876..8333dbf18ea2 100644 --- a/sound/soc/codecs/cs42l51-i2c.c +++ b/sound/soc/codecs/cs42l51-i2c.c @@ -35,12 +35,18 @@ static int cs42l51_i2c_probe(struct i2c_client *i2c, return cs42l51_probe(&i2c->dev, devm_regmap_init_i2c(i2c, &config)); } +static int cs42l51_i2c_remove(struct i2c_client *i2c) +{ + return cs42l51_remove(&i2c->dev); +} + static struct i2c_driver cs42l51_i2c_driver = { .driver = { .name = "cs42l51", .of_match_table = cs42l51_of_match, }, .probe = cs42l51_i2c_probe, + .remove = cs42l51_i2c_remove, .id_table = cs42l51_i2c_id, }; |