diff options
author | Tom Rini <trini@konsulko.com> | 2016-11-26 17:26:27 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-26 17:26:27 +0300 |
commit | 8d0898544e0930974f39d9f13de2a874a501aa18 (patch) | |
tree | e79257510f56afa87294d9dad3638d6df9590113 /cmd | |
parent | ce4f2dbe1a066a42a995c6f48280e2e1a5df1c92 (diff) | |
parent | 6b388f0bed0e3d021128b4fc3c41da4572984e3b (diff) | |
download | u-boot-8d0898544e0930974f39d9f13de2a874a501aa18.tar.xz |
Merge git://git.denx.de/u-boot-rockchip
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/regulator.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/regulator.c b/cmd/regulator.c index bfea6e04b6..2ef5bc9a82 100644 --- a/cmd/regulator.c +++ b/cmd/regulator.c @@ -292,7 +292,10 @@ static int do_value(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return CMD_RET_FAILURE; } - ret = regulator_set_value(dev, value); + if (!force) + ret = regulator_set_value(dev, value); + else + ret = regulator_set_value_force(dev, value); if (ret) { printf("Regulator: %s - can't set the Voltage!\n", uc_pdata->name); |