]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
regulator: core: Limit propagation of parent voltage count and list
authorMatthias Kaehlcke <mka@chromium.org>
Mon, 27 Mar 2017 23:54:12 +0000 (16:54 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 29 Mar 2017 11:49:38 +0000 (12:49 +0100)
commitfd086045559d90cd7854818b4c60a7119eda6231
tree395f225c6be480bcb7d0396608540a7225b5b454
parentfffd1133388857f5b4b8c588b41b2ade16c7891c
regulator: core: Limit propagation of parent voltage count and list

Commit 26988efe11b1 ("regulator: core: Allow to get voltage count and
list from parent") introduces the propagation of the parent voltage
count and list for regulators that don't provide this information
themselves. The goal is to support simple switch regulators, however as
a side effect normal continuous regulators can leak details of their
supplies and provide consumers with inconsistent information.

Limit the propagation of the voltage count and list to switch
regulators.

Fixes: 26988efe11b1 ("regulator: core: Allow to get voltage count and
  list from parent")
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
include/linux/regulator/driver.h