rk3288:pwm_regulator:set pwm_vol 1.0v when pwm_regulator_init

This commit is contained in:
张晴
2014-03-21 17:46:38 +08:00
parent 71de48f584
commit fc3bb66391

View File

@@ -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__);