#include <linux/regulator/machine.h>\r
\r
\r
-#if 0\r
+#if 1\r
#define DBG(x...) printk(KERN_INFO x)\r
#else\r
#define DBG(x...)\r
u32 size = g_pdata->pwm_vol_map_count;\r
u32 i, vol,pwm_value;\r
\r
- DBG("%s: min_uV = %d, max_uV = %d \n",__FUNCTION__, min_uV,max_uV);\r
+ DBG("%s: min_uV = %d, max_uV = %d\n",__FUNCTION__, min_uV,max_uV);\r
\r
- if (min_uV < voltage_map[0] ||max_uV > voltage_map[size])\r
+ if (min_uV < voltage_map[0] ||max_uV > voltage_map[size-1])\r
{\r
printk("%s: voltage_map voltage is out of table\n",__func__);\r
return -EINVAL;\r