Home
last modified time | relevance | path

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

/linux/drivers/power/supply/
H A Dsbs-battery.c208 struct gpio_desc *gpio_detect; member
914 if (chip->gpio_detect) { in sbs_get_property()
915 ret = gpiod_get_value_cansleep(chip->gpio_detect); in sbs_get_property()
1011 if (!chip->gpio_detect && chip->is_present != (ret >= 0)) { in sbs_get_property()
1042 ret = gpiod_get_value_cansleep(chip->gpio_detect); in sbs_supply_changed()
1168 chip->gpio_detect = devm_gpiod_get_optional(&client->dev, in sbs_probe()
1170 if (IS_ERR(chip->gpio_detect)) in sbs_probe()
1171 return dev_err_probe(&client->dev, PTR_ERR(chip->gpio_detect), in sbs_probe()
1176 if (!chip->gpio_detect) in sbs_probe()
1179 irq = gpiod_to_irq(chip->gpio_detect); in sbs_probe()
[all …]
/linux/drivers/pcmcia/
H A Delectra_cf.c46 int gpio_detect; member
60 return !(gpio & (1 << cf->gpio_detect)); in electra_cf_present()
237 cf->gpio_detect = *prop; in electra_cf_probe()