Searched refs:aldo_num (Results 1 – 2 of 2) sorted by relevance
122 int axp_set_aldo(int aldo_num, unsigned int mvolt) in axp_set_aldo() argument127 if (aldo_num < 1 || aldo_num > 3) in axp_set_aldo()130 if (mvolt == 0 && aldo_num == 3) in axp_set_aldo()135 AXP809_OUTPUT_CTRL1_ALDO1_EN << (aldo_num - 1)); in axp_set_aldo()138 ret = pmic_bus_write(AXP809_ALDO1_CTRL + (aldo_num - 1), cfg); in axp_set_aldo()142 if (aldo_num == 3) in axp_set_aldo()146 AXP809_OUTPUT_CTRL1_ALDO1_EN << (aldo_num - 1)); in axp_set_aldo()
112 int axp_set_aldo(int aldo_num, unsigned int mvolt) in axp_set_aldo() argument117 if (aldo_num < 1 || aldo_num > 3) in axp_set_aldo()122 AXP818_OUTPUT_CTRL3_ALDO1_EN << (aldo_num - 1)); in axp_set_aldo()125 ret = pmic_bus_write(AXP818_ALDO1_CTRL + (aldo_num - 1), cfg); in axp_set_aldo()130 AXP818_OUTPUT_CTRL3_ALDO1_EN << (aldo_num - 1)); in axp_set_aldo()