Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/power/supply/
Dgpio-charger.c25 struct gpio_charger { struct
51 static inline struct gpio_charger *psy_to_gpio_charger(struct power_supply *psy) in psy_to_gpio_charger() argument
56 static int set_charge_current_limit(struct gpio_charger *gpio_charger, int val) in set_charge_current_limit() argument
59 int ndescs = gpio_charger->current_limit_gpios->ndescs; in set_charge_current_limit()
60 struct gpio_desc **gpios = gpio_charger->current_limit_gpios->desc; in set_charge_current_limit()
63 if (!gpio_charger->current_limit_map_size) in set_charge_current_limit()
66 for (i = 0; i < gpio_charger->current_limit_map_size; i++) { in set_charge_current_limit()
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()
77 gpio_charger->charge_current_limit = mapping.limit_ua; in set_charge_current_limit()
[all …]