Lines Matching refs:current_limit_map
37 struct gpio_mapping *current_limit_map; member
67 if (gpio_charger->current_limit_map[i].limit_ua <= val) in set_charge_current_limit()
70 mapping = gpio_charger->current_limit_map[i]; in set_charge_current_limit()
211 gpio_charger->current_limit_map = devm_kmalloc_array(dev, in init_charge_current_limit()
212 len / 2, sizeof(*gpio_charger->current_limit_map), GFP_KERNEL); in init_charge_current_limit()
213 if (!gpio_charger->current_limit_map) in init_charge_current_limit()
219 (u32*) gpio_charger->current_limit_map, len); in init_charge_current_limit()
224 if (gpio_charger->current_limit_map[i].limit_ua > cur_limit) { in init_charge_current_limit()
229 cur_limit = gpio_charger->current_limit_map[i].limit_ua; in init_charge_current_limit()
235 gpio_charger->current_limit_map[len].limit_ua); in init_charge_current_limit()
301 if (gpio_charger->current_limit_map) { in gpio_charger_probe()