Searched refs:ta_in (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/power/
H A Dmax8903_charger.c38 bool ta_in; member in struct:max8903_data
59 else if (data->usb_in || data->ta_in) max8903_get_property()
67 if (data->usb_in || data->ta_in) max8903_get_property()
85 bool ta_in; max8903_dcin() local
88 ta_in = gpio_get_value(pdata->dok) ? false : true; max8903_dcin()
90 if (ta_in == data->ta_in) max8903_dcin()
93 data->ta_in = ta_in; max8903_dcin()
97 gpio_set_value(pdata->dcm, ta_in ? 1 : 0); max8903_dcin()
101 gpio_set_value(pdata->cen, ta_in ? 0 : max8903_dcin()
104 dev_dbg(data->dev, "TA(DC-IN) Charger %s.\n", ta_in ? max8903_dcin()
109 if (data->ta_in) max8903_dcin()
141 (data->ta_in ? 0 : 1)); max8903_usbin()
148 if (data->ta_in) max8903_usbin()
190 int ta_in = 0; max8903_probe() local
212 ta_in = gpio_get_value(gpio) ? 0 : 1; max8903_probe()
215 gpio_set_value(gpio, ta_in); max8903_probe()
248 gpio_set_value(pdata->cen, (ta_in || usb_in) ? 0 : 1); max8903_probe()
281 data->ta_in = ta_in; max8903_probe()
285 data->psy_desc.type = (ta_in) ? POWER_SUPPLY_TYPE_MAINS : max8903_probe()

Completed in 51 milliseconds