Lines Matching refs:gpio_detect
208 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()
1198 if (!(force_load || chip->gpio_detect)) { in sbs_probe()