UPSTREAM: regulator: of: Don't flag voltage change as possible for exact voltages
authorMark Brown <broonie@kernel.org>
Wed, 30 Mar 2016 15:26:09 +0000 (08:26 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 6 Mar 2017 10:28:40 +0000 (18:28 +0800)
commitb63a6e6e3ff851090c3bdf666d480239e019fa7e
tree6c8e6472002624586b42334d27a4d8c2ce69d442
parentc90bbfc477f92ea9df2925fbef6f3f47bc71b554
UPSTREAM: regulator: of: Don't flag voltage change as possible for exact voltages

Flagging voltage changes as possible for exactly specified voltages
appears to be triggering bugs in the SDHCI code (it should be able to
handle the case where only one voltage it wants is in the range it is
allowed to set) so make sure we only set the flag in cases where there's
genuine variability.

Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 45fa2038cf7820ecfcca8793b81e656ca3caaf0f)

Change-Id: I68c5c8fd3ca2da2ddb07af125f57158441040af3
Signed-off-by: David Wu <david.wu@rock-chips.com>
drivers/regulator/of_regulator.c