Home
last modified time | relevance | path

Searched refs:pwdn_gpio (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/drivers/media/i2c/
Dov772x.c422 struct gpio_desc *pwdn_gpio; member
872 if (priv->pwdn_gpio) { in ov772x_power_on()
873 gpiod_set_value(priv->pwdn_gpio, 1); in ov772x_power_on()
907 if (priv->pwdn_gpio) { in ov772x_power_off()
908 gpiod_set_value(priv->pwdn_gpio, 0); in ov772x_power_off()
1475 priv->pwdn_gpio = gpiod_get_optional(&client->dev, "powerdown", in ov772x_probe()
1477 if (IS_ERR(priv->pwdn_gpio)) { in ov772x_probe()
1479 ret = PTR_ERR(priv->pwdn_gpio); in ov772x_probe()
1512 if (priv->pwdn_gpio) in ov772x_probe()
1513 gpiod_put(priv->pwdn_gpio); in ov772x_probe()
[all …]
Dov7740.c126 struct gpio_desc *pwdn_gpio; member
306 if (ov7740->pwdn_gpio) in ov7740_set_power()
307 gpiod_direction_output(ov7740->pwdn_gpio, 0); in ov7740_set_power()
318 if (ov7740->pwdn_gpio) in ov7740_set_power()
319 gpiod_direction_output(ov7740->pwdn_gpio, 0); in ov7740_set_power()
931 ov7740->pwdn_gpio = devm_gpiod_get_optional(&client->dev, "powerdown", in ov7740_probe_dt()
933 if (IS_ERR(ov7740->pwdn_gpio)) { in ov7740_probe_dt()
935 return PTR_ERR(ov7740->pwdn_gpio); in ov7740_probe_dt()
Dov7670.c246 struct gpio_desc *pwdn_gpio; member
1664 if (info->pwdn_gpio) in ov7670_power_on()
1665 gpiod_set_value(info->pwdn_gpio, 0); in ov7670_power_on()
1671 if (info->pwdn_gpio || info->resetb_gpio || info->clk) in ov7670_power_on()
1686 if (info->pwdn_gpio) in ov7670_power_off()
1687 gpiod_set_value(info->pwdn_gpio, 1); in ov7670_power_off()
1795 info->pwdn_gpio = devm_gpiod_get_optional(&client->dev, "powerdown", in ov7670_init_gpio()
1797 if (IS_ERR(info->pwdn_gpio)) { in ov7670_init_gpio()
1799 return PTR_ERR(info->pwdn_gpio); in ov7670_init_gpio()
Dov2640.c307 struct gpio_desc *pwdn_gpio; member
790 if (priv->pwdn_gpio) in ov2640_set_power()
791 gpiod_direction_output(priv->pwdn_gpio, !on); in ov2640_set_power()
1174 priv->pwdn_gpio = devm_gpiod_get_optional(&client->dev, "pwdn", in ov2640_probe_dt()
1177 if (!priv->pwdn_gpio) in ov2640_probe_dt()
1180 ret = PTR_ERR_OR_ZERO(priv->pwdn_gpio); in ov2640_probe_dt()
Dadv7180.c212 struct gpio_desc *pwdn_gpio; member
483 if (!state->pwdn_gpio) in adv7180_set_power_pin()
487 gpiod_set_value_cansleep(state->pwdn_gpio, 0); in adv7180_set_power_pin()
490 gpiod_set_value_cansleep(state->pwdn_gpio, 1); in adv7180_set_power_pin()
1416 state->pwdn_gpio = devm_gpiod_get_optional(&client->dev, "powerdown", in adv7180_probe()
1418 if (IS_ERR(state->pwdn_gpio)) { in adv7180_probe()
1419 ret = PTR_ERR(state->pwdn_gpio); in adv7180_probe()
Dov2659.c213 struct gpio_desc *pwdn_gpio; member
1270 gpiod_set_value(ov2659->pwdn_gpio, 1); in ov2659_power_off()
1293 gpiod_set_value(ov2659->pwdn_gpio, 0); in ov2659_power_on()
1460 ov2659->pwdn_gpio = devm_gpiod_get_optional(&client->dev, "powerdown", in ov2659_probe()
1462 if (IS_ERR(ov2659->pwdn_gpio)) in ov2659_probe()
1463 return PTR_ERR(ov2659->pwdn_gpio); in ov2659_probe()
Dov5640.c445 struct gpio_desc *pwdn_gpio; member
2424 gpiod_set_value_cansleep(sensor->pwdn_gpio, enable ? 0 : 1); in ov5640_power()
3862 sensor->pwdn_gpio = devm_gpiod_get_optional(dev, "powerdown", in ov5640_probe()
3864 if (IS_ERR(sensor->pwdn_gpio)) in ov5640_probe()
3865 return PTR_ERR(sensor->pwdn_gpio); in ov5640_probe()