mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
rk3288:pwm_regulator:set pwm_vol 1.0v when pwm_regulator_init
This commit is contained in:
parent
71de48f584
commit
fc3bb66391
|
|
@ -35,7 +35,7 @@
|
|||
#include <linux/regulator/machine.h>
|
||||
|
||||
|
||||
#if 1
|
||||
#if 0
|
||||
#define DBG(x...) printk(KERN_INFO x)
|
||||
#else
|
||||
#define DBG(x...)
|
||||
|
|
@ -369,12 +369,14 @@ static int __init pwm_regulator_probe(struct platform_device *pdev)
|
|||
goto err;
|
||||
}
|
||||
pdata->rdev[i] = pwm_rdev;
|
||||
|
||||
/*********set pwm vol by defult***********/
|
||||
dc = regulator_get(NULL,rail_name);
|
||||
regulator_set_voltage(dc,pdata->pwm_voltage,pdata->pwm_voltage);
|
||||
regulator_put(dc);
|
||||
/**************************************/
|
||||
}
|
||||
}
|
||||
/*********set pwm vol by defult***********/
|
||||
//dc = regulator_get(NULL,"vdd_gpu");
|
||||
//regulator_set_voltage(dc,pdata->pwm_voltage,pdata->pwm_voltage);
|
||||
/**************************************/
|
||||
return 0;
|
||||
err:
|
||||
printk("%s:error\n",__func__);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user