projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0912327
)
rk30 and rk2928:support set logic init voltage by pwm
author
zq
<zq@ubuntu.(none)>
Tue, 28 Aug 2012 04:36:17 +0000
(21:36 -0700)
committer
zq
<zq@ubuntu.(none)>
Tue, 28 Aug 2012 04:36:17 +0000
(21:36 -0700)
drivers/regulator/rk30-pwm-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/rk30-pwm-regulator.c
b/drivers/regulator/rk30-pwm-regulator.c
index 2c0e46ed02fe8f0a1e34311710790e2ce78f7ff7..9a08db014d0b1b14b2f6c6a85012cd38506965e3 100755
(executable)
--- a/
drivers/regulator/rk30-pwm-regulator.c
+++ b/
drivers/regulator/rk30-pwm-regulator.c
@@
-260,6
+260,7
@@
static int __devinit pwm_regulator_probe(struct platform_device *pdev)
int id = pdev->id;
\r
int ret ;
\r
char gpio_name[20];
\r
+ unsigned selector = 0;
\r
\r
if (!pdata)
\r
return -ENODEV;
\r
@@
-338,6
+339,7
@@
static int __devinit pwm_regulator_probe(struct platform_device *pdev)
g_dcdc = dcdc;
\r
platform_set_drvdata(pdev, dcdc);
\r
printk(KERN_INFO "pwm_regulator.%d: driver initialized\n",id);
\r
+ pwm_regulator_set_voltage(dcdc->regulator,pdata->pwm_voltage,pdata->pwm_voltage,&selector);
\r
\r
return 0;
\r
\r