Home
last modified time | relevance | path

Searched refs:prev_curr_index (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dab8500_charger.c1156 int curr_index, prev_curr_index, shift_value, i; in ab8500_charger_set_current() local
1173 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1181 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1190 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1193 if (curr_index && (curr_index - prev_curr_index) > 1) in ab8500_charger_set_current()
1213 if (prev_curr_index == curr_index) { in ab8500_charger_set_current()
1228 } else if (prev_curr_index > curr_index) { in ab8500_charger_set_current()
1229 for (i = prev_curr_index - 1; i >= curr_index; i--) { in ab8500_charger_set_current()
1243 for (i = prev_curr_index + 1; i <= curr_index && allow; i++) { in ab8500_charger_set_current()