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

- From: Mark Brown \<broonie@kernel.org\>
- Date: 2015-07-14 10:51:55 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2015/07/8716856
- Thread: https://ratatoskr.run/linux-arm-kernel/2015/07/8716021/t.md

```text
On Wed, Jul 01, 2015 at 10:22:01AM +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.

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.
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-fbdev/2015/07/8716856/attachment/0) (application/pgp-signature, 473 bytes)
