Home
last modified time | relevance | path

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

/linux/drivers/power/supply/
H A Dab8500_charger.c1168 int curr_index, prev_curr_index, shift_value, i; in ab8500_charger_set_current() local
1185 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1193 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1202 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1205 if (curr_index && (curr_index - prev_curr_index) > 1) in ab8500_charger_set_current()
1225 if (prev_curr_index == curr_index) { in ab8500_charger_set_current()
1240 } else if (prev_curr_index > curr_index) { in ab8500_charger_set_current()
1241 for (i = prev_curr_index - 1; i >= curr_index; i--) { in ab8500_charger_set_current()
1255 for (i = prev_curr_index + 1; i <= curr_index && allow; i++) { in ab8500_charger_set_current()