Re: [PATCH v3 12/12] regulator: pwm: properly initialize the ->state field

From: Mark Brown
Date: Mon Sep 21 2015 - 17:12:37 EST


On Mon, Sep 21, 2015 at 11:33:29AM +0200, Boris Brezillon wrote:
> The ->state field is currently initialized to 0, thus referencing the
> voltage selector at index 0, which might not reflect the current voltage
> value.
> If possible, retrieve the current voltage selector from the PWM state, else
> return -EINVAL.

Acked-by: Mark Brown <broonie@xxxxxxxxxx>

Attachment: signature.asc
Description: Digital signature