|
@@ -1681,7 +1681,6 @@ static const struct v4l2_ctrl_config tc358743_ctrl_audio_present = {
|
|
#ifdef CONFIG_OF
|
|
#ifdef CONFIG_OF
|
|
static void tc358743_gpio_reset(struct tc358743_state *state)
|
|
static void tc358743_gpio_reset(struct tc358743_state *state)
|
|
{
|
|
{
|
|
- gpiod_set_value(state->reset_gpio, 0);
|
|
|
|
usleep_range(5000, 10000);
|
|
usleep_range(5000, 10000);
|
|
gpiod_set_value(state->reset_gpio, 1);
|
|
gpiod_set_value(state->reset_gpio, 1);
|
|
usleep_range(1000, 2000);
|
|
usleep_range(1000, 2000);
|
|
@@ -1783,7 +1782,7 @@ static int tc358743_probe_of(struct tc358743_state *state)
|
|
state->pdata.ths_trailcnt = 0x2;
|
|
state->pdata.ths_trailcnt = 0x2;
|
|
state->pdata.hstxvregcnt = 0;
|
|
state->pdata.hstxvregcnt = 0;
|
|
|
|
|
|
- state->reset_gpio = devm_gpiod_get(dev, "reset");
|
|
|
|
|
|
+ state->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
|
|
if (IS_ERR(state->reset_gpio)) {
|
|
if (IS_ERR(state->reset_gpio)) {
|
|
dev_err(dev, "failed to get reset gpio\n");
|
|
dev_err(dev, "failed to get reset gpio\n");
|
|
ret = PTR_ERR(state->reset_gpio);
|
|
ret = PTR_ERR(state->reset_gpio);
|