Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/power/supply/
Dab8500_charger.c1115 int curr_index, prev_curr_index, shift_value, i; in ab8500_charger_set_current() local
1132 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1140 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1149 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1152 if (curr_index && (curr_index - prev_curr_index) > 1) in ab8500_charger_set_current()
1172 if (prev_curr_index == curr_index) { in ab8500_charger_set_current()
1187 } else if (prev_curr_index > curr_index) { in ab8500_charger_set_current()
1188 for (i = prev_curr_index - 1; i >= curr_index; i--) { in ab8500_charger_set_current()
1202 for (i = prev_curr_index + 1; i <= curr_index && allow; i++) { in ab8500_charger_set_current()