Home
last modified time | relevance | path

Searched refs:rstb_gpio (Results 1 - 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/drivers/media/i2c/
H A Dtw9910.c233 struct gpio_desc *rstb_gpio; member
614 priv->rstb_gpio = gpiod_get_optional(&client->dev, "rstb", in tw9910_power_on()
616 if (IS_ERR(priv->rstb_gpio)) { in tw9910_power_on()
620 return PTR_ERR(priv->rstb_gpio); in tw9910_power_on()
623 if (priv->rstb_gpio) { in tw9910_power_on()
624 tw9910_set_gpio_value(priv->rstb_gpio, 1); in tw9910_power_on()
625 tw9910_set_gpio_value(priv->rstb_gpio, 0); in tw9910_power_on()
627 gpiod_put(priv->rstb_gpio); in tw9910_power_on()
H A Dov772x.c422 struct gpio_desc *rstb_gpio; member
864 priv->rstb_gpio = gpiod_get_optional(&client->dev, "reset", in ov772x_power_on()
866 if (IS_ERR(priv->rstb_gpio)) { in ov772x_power_on()
869 return PTR_ERR(priv->rstb_gpio); in ov772x_power_on()
872 if (priv->rstb_gpio) { in ov772x_power_on()
873 gpiod_set_value(priv->rstb_gpio, 1); in ov772x_power_on()
875 gpiod_set_value(priv->rstb_gpio, 0); in ov772x_power_on()
878 gpiod_put(priv->rstb_gpio); in ov772x_power_on()
/kernel/linux/linux-6.6/drivers/media/i2c/
H A Dtw9910.c233 struct gpio_desc *rstb_gpio; member
614 priv->rstb_gpio = gpiod_get_optional(&client->dev, "rstb", in tw9910_power_on()
616 if (IS_ERR(priv->rstb_gpio)) { in tw9910_power_on()
620 return PTR_ERR(priv->rstb_gpio); in tw9910_power_on()
623 if (priv->rstb_gpio) { in tw9910_power_on()
624 tw9910_set_gpio_value(priv->rstb_gpio, 1); in tw9910_power_on()
625 tw9910_set_gpio_value(priv->rstb_gpio, 0); in tw9910_power_on()
627 gpiod_put(priv->rstb_gpio); in tw9910_power_on()
H A Dov772x.c423 struct gpio_desc *rstb_gpio; member
883 priv->rstb_gpio = gpiod_get_optional(&client->dev, "reset", in ov772x_power_on()
885 if (IS_ERR(priv->rstb_gpio)) { in ov772x_power_on()
888 return PTR_ERR(priv->rstb_gpio); in ov772x_power_on()
891 if (priv->rstb_gpio) { in ov772x_power_on()
892 gpiod_set_value(priv->rstb_gpio, 1); in ov772x_power_on()
894 gpiod_set_value(priv->rstb_gpio, 0); in ov772x_power_on()
897 gpiod_put(priv->rstb_gpio); in ov772x_power_on()
H A Disl7998x.c515 struct gpio_desc *rstb_gpio; member
1480 isl7998x->rstb_gpio = devm_gpiod_get_optional(dev, "reset", in isl7998x_probe()
1482 if (IS_ERR(isl7998x->rstb_gpio)) in isl7998x_probe()
1483 return dev_err_probe(dev, PTR_ERR(isl7998x->rstb_gpio), in isl7998x_probe()
1575 gpiod_set_value(isl7998x->rstb_gpio, 1); in isl7998x_runtime_resume()
1577 gpiod_set_value(isl7998x->rstb_gpio, 0); in isl7998x_runtime_resume()

Completed in 12 milliseconds