Searched refs:REG2VOL (Results 1 – 1 of 1) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/regulator/ |
| H A D | tps549b22-regulator.c | 56 #define REG2VOL(val, vol_step) \ macro 91 return REG2VOL(index + VOL_MIN_IDX, tps549b22->vol_step); in tps549b22_dcdc_list_voltage() 153 return REG2VOL(val, tps549b22->vol_step); in tps549b22dcdc_get_voltage() 167 if (min_uV < REG2VOL(VOL_MIN_IDX, tps549b22->vol_step) || in tps549b22dcdc_set_voltage() 168 min_uV > REG2VOL(VOL_MAX_IDX, tps549b22->vol_step)) { in tps549b22dcdc_set_voltage() 171 REG2VOL(min_uV, tps549b22->vol_step)); in tps549b22dcdc_set_voltage() 176 if (REG2VOL(val, tps549b22->vol_step) >= min_uV) in tps549b22dcdc_set_voltage() 179 if (REG2VOL(val, tps549b22->vol_step) > max_uV) in tps549b22dcdc_set_voltage() 182 REG2VOL(val, tps549b22->vol_step)); in tps549b22dcdc_set_voltage() 191 REG2VOL(val, tps549b22->vol_step)); in tps549b22dcdc_set_voltage()
|