mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 02:56:15 +07:00
Merge remote-tracking branch 'regulator/topic/tol' into regulator-next
This commit is contained in:
commit
f4244c68ff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user