Re: [RESEND 09/10] regulator: pwm-regulator: Simplify voltage to duty-cycle call

From: Mark Brown
Date: Tue Jul 07 2015 - 09:33:11 EST


On Mon, Jul 06, 2015 at 09:58:31AM +0100, Lee Jones wrote:
> If we reverse some of the logic and change the formula used,
> we can simplify the function greatly.

> +static int pwm_voltage_to_duty_cycle(struct regulator_dev *rdev, int req_uV)
> {
> - struct pwm_regulator_data *drvdata = rdev_get_drvdata(rdev);

You just added this function in the previous patch?

Attachment: signature.asc
Description: Digital signature