Re: [PATCH v3 11/14] regulator: pwm: Properly initialize the ->state field

2016-07-05 Thread Mark Brown
On Tue, Jun 14, 2016 at 11:13:19AM +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, > els

[PATCH v3 11/14] regulator: pwm: Properly initialize the ->state field

2016-06-14 Thread Boris Brezillon
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. Signed-off-by: Boris Brezillon Tested-by: Brian Norris