diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c index 96f18083a3b6f..e15634edb8cef 100644 --- a/drivers/regulator/stpmic1_regulator.c +++ b/drivers/regulator/stpmic1_regulator.c @@ -441,7 +441,7 @@ static unsigned int stpmic1_map_mode(unsigned int mode) case STPMIC1_BUCK_MODE_LP: return REGULATOR_MODE_STANDBY; default: - return -EINVAL; + return REGULATOR_MODE_INVALID; } }