projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89a5f77
)
regulator: rtmv20: Add missing regcache cache only before marked as dirty
author
ChiYuan Huang
<cy_huang@richtek.com>
Wed, 30 Sep 2020 10:18:52 +0000
(18:18 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 30 Sep 2020 11:58:09 +0000
(12:58 +0100)
Add missing regcache cache only before masked as dirty.
Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Link:
https://lore.kernel.org/r/1601461132-15251-1-git-send-email-u0084500@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rtmv20-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/rtmv20-regulator.c
b/drivers/regulator/rtmv20-regulator.c
index
05fd8e7
..
852fb25
100644
(file)
--- a/
drivers/regulator/rtmv20-regulator.c
+++ b/
drivers/regulator/rtmv20-regulator.c
@@
-325,6
+325,7
@@
static int rtmv20_probe(struct i2c_client *i2c)
* keep in shutdown mode to minimize the current consumption
* and also mark regcache as dirty
*/
+ regcache_cache_only(priv->regmap, true);
regcache_mark_dirty(priv->regmap);
gpiod_set_value(priv->enable_gpio, 0);