Lines Matching refs:gpio_detect
209 struct gpio_desc *gpio_detect; member
915 if (chip->gpio_detect) { in sbs_get_property()
916 ret = gpiod_get_value_cansleep(chip->gpio_detect); in sbs_get_property()
1012 if (!chip->gpio_detect && chip->is_present != (ret >= 0)) { in sbs_get_property()
1043 ret = gpiod_get_value_cansleep(chip->gpio_detect); in sbs_supply_changed()
1169 chip->gpio_detect = devm_gpiod_get_optional(&client->dev, in sbs_probe()
1171 if (IS_ERR(chip->gpio_detect)) in sbs_probe()
1172 return dev_err_probe(&client->dev, PTR_ERR(chip->gpio_detect), in sbs_probe()
1177 if (!chip->gpio_detect) in sbs_probe()
1180 irq = gpiod_to_irq(chip->gpio_detect); in sbs_probe()
1199 if (!(force_load || chip->gpio_detect)) { in sbs_probe()