Skip to content

Commit

Permalink
ov13850 hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
mmind committed Jan 30, 2021
1 parent 275b006 commit 9641b7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/media/i2c/ov13850.c
Original file line number Diff line number Diff line change
Expand Up @@ -1557,17 +1557,17 @@ static int ov13850_probe(struct i2c_client *client,
if (IS_ERR(ov13850->reset_gpio))
dev_warn(dev, "Failed to get reset-gpios\n");

ov13850->pwdn_gpio = devm_gpiod_get(dev, "pwdn", GPIOD_OUT_LOW);
ov13850->pwdn_gpio = devm_gpiod_get(dev, "powerdown", GPIOD_OUT_LOW);
if (IS_ERR(ov13850->pwdn_gpio))
dev_warn(dev, "Failed to get pwdn-gpios\n");
dev_warn(dev, "Failed to get powerdown-gpios\n");

ret = ov13850_configure_regulators(ov13850);
if (ret) {
dev_err(dev, "Failed to get power regulators\n");
return ret;
}

ov13850->pinctrl = devm_pinctrl_get(dev);
/* ov13850->pinctrl = devm_pinctrl_get(dev);
if (!IS_ERR(ov13850->pinctrl)) {
ov13850->pins_default =
pinctrl_lookup_state(ov13850->pinctrl,
Expand All @@ -1580,7 +1580,7 @@ static int ov13850_probe(struct i2c_client *client,
OF_CAMERA_PINCTRL_STATE_SLEEP);
if (IS_ERR(ov13850->pins_sleep))
dev_err(dev, "could not get sleep pinstate\n");
}
} */

mutex_init(&ov13850->mutex);

Expand Down

0 comments on commit 9641b7a

Please sign in to comment.