X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Fregulator.c;h=2ef5bc9a828967f913b3d13a16f62f05342ff839;hb=83605d37b00168d4960a752cff898d09d3062015;hp=bfea6e04b6746dbb5d8efaa26073761ad9d390f9;hpb=2e192b245ed36a63bab0ef576999a95e23f60ecd;p=oweals%2Fu-boot.git 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);