/* NOTE: If the regulator is disabled it will return the voltage value. This function should not be used to determine regulator state.  */
int regulator_get_voltage(struct regulator *regulator)
/* NOTE: If the regulator is disabled it will return the voltage value. This function should not be used to determine regulator state.  */
int regulator_get_voltage(struct regulator *regulator)
{
	int ret;
	mutex_lock(&regulator->rdev->mutex);
	ret = _regulator_get_voltage(regulator->rdev);
	mutex_unlock(&regulator->rdev->mutex);
	return ret;
}