Lines Matching refs:gpio_detect
167 struct gpio_desc *gpio_detect; member
616 if (chip->gpio_detect) { in sbs_get_property()
617 ret = gpiod_get_value_cansleep(chip->gpio_detect); in sbs_get_property()
716 if (!chip->gpio_detect && in sbs_get_property()
746 ret = gpiod_get_value_cansleep(chip->gpio_detect); in sbs_supply_changed()
870 chip->gpio_detect = devm_gpiod_get_optional(&client->dev, in sbs_probe()
872 if (IS_ERR(chip->gpio_detect)) { in sbs_probe()
874 PTR_ERR(chip->gpio_detect)); in sbs_probe()
875 return PTR_ERR(chip->gpio_detect); in sbs_probe()
880 if (!chip->gpio_detect) in sbs_probe()
883 irq = gpiod_to_irq(chip->gpio_detect); in sbs_probe()
902 if (!(force_load || chip->gpio_detect)) { in sbs_probe()