regulator: pwm-regulator: Small clean-ups
authorLee Jones <lee.jones@linaro.org>
Thu, 9 Jul 2015 15:35:28 +0000 (16:35 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 9 Jul 2015 17:54:25 +0000 (18:54 +0100)
commitf3f6439d8635d783f145b321db3049369e745799
treea3feb879bc6f2dc02e85b62ff1b9829dd55e6793
parentf747a1fe7848453957dbdf362a42d7a6735c6ff0
regulator: pwm-regulator: Small clean-ups

Remove over-bracketing, use framework API to fetch PWM period and
be more forthcoming that pwm_voltage_to_duty_cycle() actually returns
duty cycle as a percentage, rather than a register value.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pwm-regulator.c