/linux-6.12.1/drivers/media/i2c/ |
D | ov772x.c | 422 struct gpio_desc *pwdn_gpio; member 886 if (priv->pwdn_gpio) { in ov772x_power_on() 887 gpiod_set_value(priv->pwdn_gpio, 1); in ov772x_power_on() 921 if (priv->pwdn_gpio) { in ov772x_power_off() 922 gpiod_set_value(priv->pwdn_gpio, 0); in ov772x_power_off() 1489 priv->pwdn_gpio = gpiod_get_optional(&client->dev, "powerdown", in ov772x_probe() 1491 if (IS_ERR(priv->pwdn_gpio)) { in ov772x_probe() 1493 ret = PTR_ERR(priv->pwdn_gpio); in ov772x_probe() 1524 if (priv->pwdn_gpio) in ov772x_probe() 1525 gpiod_put(priv->pwdn_gpio); in ov772x_probe() [all …]
|
D | ov7740.c | 123 struct gpio_desc *pwdn_gpio; member 303 if (ov7740->pwdn_gpio) in ov7740_set_power() 304 gpiod_direction_output(ov7740->pwdn_gpio, 0); in ov7740_set_power() 315 if (ov7740->pwdn_gpio) in ov7740_set_power() 316 gpiod_direction_output(ov7740->pwdn_gpio, 0); in ov7740_set_power() 896 ov7740->pwdn_gpio = devm_gpiod_get_optional(&client->dev, "powerdown", in ov7740_probe_dt() 898 if (IS_ERR(ov7740->pwdn_gpio)) { in ov7740_probe_dt() 900 return PTR_ERR(ov7740->pwdn_gpio); in ov7740_probe_dt()
|
D | ov8858.c | 109 struct gpio_desc *pwdn_gpio; member 1652 gpiod_set_value_cansleep(ov8858->pwdn_gpio, 0); in ov8858_power_on() 1665 gpiod_set_value_cansleep(ov8858->pwdn_gpio, 1); in ov8858_power_off() 1898 ov8858->pwdn_gpio = devm_gpiod_get_optional(dev, "powerdown", in ov8858_probe() 1900 if (IS_ERR(ov8858->pwdn_gpio)) in ov8858_probe() 1901 return dev_err_probe(dev, PTR_ERR(ov8858->pwdn_gpio), in ov8858_probe()
|
D | ov4689.c | 128 struct gpio_desc *pwdn_gpio; member 541 gpiod_set_value_cansleep(ov4689->pwdn_gpio, 0); in ov4689_power_on() 560 gpiod_set_value_cansleep(ov4689->pwdn_gpio, 1); in ov4689_power_off() 947 ov4689->pwdn_gpio = devm_gpiod_get_optional(dev, "pwdn", GPIOD_OUT_LOW); in ov4689_probe() 948 if (IS_ERR(ov4689->pwdn_gpio)) { in ov4689_probe() 950 return PTR_ERR(ov4689->pwdn_gpio); in ov4689_probe()
|
D | ov2680.c | 162 struct gpio_desc *pwdn_gpio; member 274 if (!sensor->pwdn_gpio) in ov2680_power_up() 277 gpiod_set_value(sensor->pwdn_gpio, 0); in ov2680_power_up() 283 if (!sensor->pwdn_gpio) in ov2680_power_down() 286 gpiod_set_value(sensor->pwdn_gpio, 1); in ov2680_power_down() 534 if (!sensor->pwdn_gpio) { in ov2680_power_on() 1115 sensor->pwdn_gpio = gpio; in ov2680_parse_dt()
|
D | ov7670.c | 239 struct gpio_desc *pwdn_gpio; member 1660 if (info->pwdn_gpio) in ov7670_power_on() 1661 gpiod_set_value(info->pwdn_gpio, 0); in ov7670_power_on() 1667 if (info->pwdn_gpio || info->resetb_gpio || info->clk) in ov7670_power_on() 1682 if (info->pwdn_gpio) in ov7670_power_off() 1683 gpiod_set_value(info->pwdn_gpio, 1); in ov7670_power_off() 1768 info->pwdn_gpio = devm_gpiod_get_optional(&client->dev, "powerdown", in ov7670_init_gpio() 1770 if (IS_ERR(info->pwdn_gpio)) { in ov7670_init_gpio() 1772 return PTR_ERR(info->pwdn_gpio); in ov7670_init_gpio()
|
D | ov2640.c | 303 struct gpio_desc *pwdn_gpio; member 786 if (priv->pwdn_gpio) in ov2640_set_power() 787 gpiod_direction_output(priv->pwdn_gpio, !on); in ov2640_set_power() 1168 priv->pwdn_gpio = devm_gpiod_get_optional(&client->dev, "pwdn", in ov2640_probe_dt() 1171 if (!priv->pwdn_gpio) in ov2640_probe_dt() 1174 ret = PTR_ERR_OR_ZERO(priv->pwdn_gpio); in ov2640_probe_dt()
|
D | ov5670.c | 1879 struct gpio_desc *pwdn_gpio; /* PWDNB pin. */ member 2513 gpiod_set_value_cansleep(ov5670->pwdn_gpio, 0); in ov5670_runtime_resume() 2531 gpiod_set_value_cansleep(ov5670->pwdn_gpio, 1); in ov5670_runtime_suspend() 2638 ov5670->pwdn_gpio = devm_gpiod_get_optional(&client->dev, "powerdown", in ov5670_gpio_probe() 2640 if (IS_ERR(ov5670->pwdn_gpio)) in ov5670_gpio_probe() 2641 return PTR_ERR(ov5670->pwdn_gpio); in ov5670_gpio_probe()
|
D | adv7180.c | 213 struct gpio_desc *pwdn_gpio; member 492 if (!state->pwdn_gpio) in adv7180_set_power_pin() 496 gpiod_set_value_cansleep(state->pwdn_gpio, 0); in adv7180_set_power_pin() 499 gpiod_set_value_cansleep(state->pwdn_gpio, 1); in adv7180_set_power_pin() 1427 state->pwdn_gpio = devm_gpiod_get_optional(&client->dev, "powerdown", in adv7180_probe() 1429 if (IS_ERR(state->pwdn_gpio)) { in adv7180_probe() 1430 ret = PTR_ERR(state->pwdn_gpio); in adv7180_probe()
|
D | ov2659.c | 213 struct gpio_desc *pwdn_gpio; member 1264 gpiod_set_value(ov2659->pwdn_gpio, 1); in ov2659_power_off() 1287 gpiod_set_value(ov2659->pwdn_gpio, 0); in ov2659_power_on() 1450 ov2659->pwdn_gpio = devm_gpiod_get_optional(&client->dev, "powerdown", in ov2659_probe() 1452 if (IS_ERR(ov2659->pwdn_gpio)) in ov2659_probe() 1453 return PTR_ERR(ov2659->pwdn_gpio); in ov2659_probe()
|
D | gc0308.c | 436 struct gpio_desc *pwdn_gpio; member 783 gpiod_set_value_cansleep(gc0308->pwdn_gpio, 0); in gc0308_power_on() 802 gpiod_set_value_cansleep(gc0308->pwdn_gpio, 1); in gc0308_power_off() 1318 gc0308->pwdn_gpio = devm_gpiod_get(dev, "powerdown", GPIOD_OUT_LOW); in gc0308_probe() 1319 if (IS_ERR(gc0308->pwdn_gpio)) in gc0308_probe() 1320 return dev_err_probe(dev, PTR_ERR(gc0308->pwdn_gpio), in gc0308_probe()
|
D | ov5640.c | 446 struct gpio_desc *pwdn_gpio; member 2435 gpiod_set_value_cansleep(sensor->pwdn_gpio, enable ? 0 : 1); in ov5640_power() 2454 if (sensor->pwdn_gpio) { in ov5640_powerup_sequence() 3915 sensor->pwdn_gpio = devm_gpiod_get_optional(dev, "powerdown", in ov5640_probe() 3917 if (IS_ERR(sensor->pwdn_gpio)) in ov5640_probe() 3918 return PTR_ERR(sensor->pwdn_gpio); in ov5640_probe()
|