Skip to content

Commit

Permalink
Merge remote-tracking branch 'regulator/topic/tol' into regulator-next
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Dec 10, 2012
2 parents 4247bfe + fe1e43f commit f4244c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/linux/regulator/consumer.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,4 +372,12 @@ static inline int regulator_set_voltage_tol(struct regulator *regulator,
new_uV - tol_uV, new_uV + tol_uV);
}

static inline int regulator_is_supported_voltage_tol(struct regulator *regulator,
int target_uV, int tol_uV)
{
return regulator_is_supported_voltage(regulator,
target_uV - tol_uV,
target_uV + tol_uV);
}

#endif

0 comments on commit f4244c6

Please sign in to comment.