diff options
author | Dong Aisheng <aisheng.dong@nxp.com> | 2016-12-15 06:54:45 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:25:27 +0800 |
commit | 7dfd8bffd72638866d6559b4261825cf8b89b06b (patch) | |
tree | 246901fbcfaa763e303f3ebf70b7272aa2bae36c /drivers/regulator | |
parent | a1791ffd5e3c8b0639b5df9e374509ab58999c0e (diff) |
MLK-13615-1 regulator: pf1550-regulator-rpmsg: should set voltage closest to min_uV
According to API definition, Set the voltage for the regulator within the
range specified, the driver should select the voltage closest to min_uV.
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/pf1550-regulator-rpmsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/pf1550-regulator-rpmsg.c b/drivers/regulator/pf1550-regulator-rpmsg.c index 5151528264d8..0bebc7e57c82 100644 --- a/drivers/regulator/pf1550-regulator-rpmsg.c +++ b/drivers/regulator/pf1550-regulator-rpmsg.c @@ -168,7 +168,7 @@ static int pf1550_set_voltage(struct regulator_dev *reg, msg.cmd = PF1550_SET_VOL; msg.regulator = reg->desc->id; - msg.voltage = uV; + msg.voltage = minuV; err = pf1550_send_message(&msg, info); if (err) |