# \[PATCH\] ARM: pcm037: convert custom GPIO-based power function to a regulator

- From: Sascha Hauer \<s.hauer@pengutronix.de\>
- Date: 2013-11-04 08:40:47 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2013/11/8664385
- Thread: https://ratatoskr.run/linux-arm-kernel/2013/10/8664182/t.md

```text
Hi Guennadi,

On Thu, Oct 31, 2013 at 11:20:46AM +0100, Guennadi Liakhovetski wrote:
> Add a fixed-voltage GPIO-enabled regulator to switch the camera on and off
> instead of using a .power() platform callback.
> 
> Signed-off-by: Guennadi Liakhovetski <redacted>
> ---
> 
> Only tested to grab the regulator during probing, couldn't test 
> functionality due to the lack of an mt9t031 sensor.
> 
>  arch/arm/mach-imx/mach-pcm037.c |   50 ++++++++++++++++++++++++++++-----------
>  1 files changed, 36 insertions(+), 14 deletions(-)

What's the motivation for this patch? It probably does the right thing,
but I think we need a plan for converting this to devicetree rather than
adding more stuff.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
```
