Lines Matching refs:ta_in
37 bool ta_in; member
59 else if (data->usb_in || data->ta_in) in max8903_get_property()
67 if (data->usb_in || data->ta_in) in max8903_get_property()
85 bool ta_in; in max8903_dcin() local
88 ta_in = gpio_get_value(pdata->dok) ? false : true; in max8903_dcin()
90 if (ta_in == data->ta_in) in max8903_dcin()
93 data->ta_in = ta_in; in max8903_dcin()
97 gpio_set_value(pdata->dcm, ta_in ? 1 : 0); in max8903_dcin()
101 gpio_set_value(pdata->cen, ta_in ? 0 : in max8903_dcin()
104 dev_dbg(data->dev, "TA(DC-IN) Charger %s.\n", ta_in ? in max8903_dcin()
109 if (data->ta_in) in max8903_dcin()
141 (data->ta_in ? 0 : 1)); in max8903_usbin()
148 if (data->ta_in) in max8903_usbin()
189 int ta_in = 0; in max8903_probe() local
211 ta_in = gpio_get_value(gpio) ? 0 : 1; in max8903_probe()
214 gpio_set_value(gpio, ta_in); in max8903_probe()
247 gpio_set_value(pdata->cen, (ta_in || usb_in) ? 0 : 1); in max8903_probe()
280 data->ta_in = ta_in; in max8903_probe()
284 data->psy.type = (ta_in) ? POWER_SUPPLY_TYPE_MAINS : in max8903_probe()