Skip to content

Commit

Permalink
[media] adv7604: Set HPD GPIO direction to output
Browse files Browse the repository at this point in the history
The HPD GPIO is used as an output but its direction is never set. Fix
it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
  • Loading branch information
Laurent Pinchart authored and Mauro Carvalho Chehab committed May 25, 2014
1 parent 6fa8804 commit 9b2c382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/adv7604.c
Original file line number Diff line number Diff line change
Expand Up @@ -2797,7 +2797,7 @@ static int adv7604_probe(struct i2c_client *client,
if (IS_ERR(state->hpd_gpio[i]))
continue;

gpiod_set_value_cansleep(state->hpd_gpio[i], 0);
gpiod_direction_output(state->hpd_gpio[i], 0);

v4l_info(client, "Handling HPD %u GPIO\n", i);
}
Expand Down

0 comments on commit 9b2c382

Please sign in to comment.