Lines Matching refs:usb_in
26 bool usb_in; member
48 else if (data->usb_in || data->ta_in) in max8903_get_property()
56 if (data->usb_in || data->ta_in) in max8903_get_property()
92 (data->usb_in ? 0 : 1)); in max8903_dcin()
101 else if (data->usb_in) in max8903_dcin()
116 bool usb_in; in max8903_usbin() local
119 usb_in = gpio_get_value(pdata->uok) ? false : true; in max8903_usbin()
121 if (usb_in == data->usb_in) in max8903_usbin()
124 data->usb_in = usb_in; in max8903_usbin()
130 gpio_set_value(pdata->cen, usb_in ? 0 : in max8903_usbin()
133 dev_dbg(data->dev, "USB Charger %s.\n", usb_in ? in max8903_usbin()
140 else if (data->usb_in) in max8903_usbin()
230 int usb_in = 0; in max8903_setup_gpios() local
276 usb_in = gpio_get_value(gpio) ? 0 : 1; in max8903_setup_gpios()
293 gpio_set_value(pdata->cen, (ta_in || usb_in) ? 0 : 1); in max8903_setup_gpios()
328 data->usb_in = usb_in; in max8903_setup_gpios()
369 ((data->usb_in) ? POWER_SUPPLY_TYPE_USB : in max8903_probe()