[RFC PATCH 15/15] regulator: pwm: properly initialize the ->state field

From
Boris Brezillon <hidden>
Date
2015-07-14 11:03:53
Also in
linux-fbdev, linux-leds, linux-pwm, linux-tegra
Reply to
Mark Brown, 2015-07-14
On Tue, 14 Jul 2015 11:51:55 +0100
Mark Brown [off-list ref] wrote:
On Wed, Jul 01, 2015 at 10:22:01AM +0200, Boris Brezillon wrote:
quoted
The ->state field is currently initialized to 0, thus referencing the
voltage selector at index 0, which might not reflect the current voltage
value.
This looks like it'll need reworking on top of Lee's recent changes to
implement continuous voltage support for PWM regulators - we may be
calculating the values to set dynamically at runtime.
Yep, I was planning on doing that in the next iteration, but I'd like
to have Thierry's feedback before sending a new version.


-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Thread (68 messages) 68 messages, 6 authors, last reply 2015-07-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help