aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-03-25 22:24:02 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-25 12:09:13 -0400
commit9b2c38239dcd21d9eed1a49a486d8779c915d277 (patch)
treea5a86a6f9ed572e1d51a46fd7aa44a25d3f14bff /drivers/media/i2c
parent6fa88045ef7db3d09af80aa00fd7c937b7289387 (diff)
[media] adv7604: Set HPD GPIO direction to output
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>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/adv7604.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c
index 1493de6c246f..1a2797bfd12e 100644
--- a/drivers/media/i2c/adv7604.c
+++ b/drivers/media/i2c/adv7604.c
@@ -2797,7 +2797,7 @@ static int adv7604_probe(struct i2c_client *client,
2797 if (IS_ERR(state->hpd_gpio[i])) 2797 if (IS_ERR(state->hpd_gpio[i]))
2798 continue; 2798 continue;
2799 2799
2800 gpiod_set_value_cansleep(state->hpd_gpio[i], 0); 2800 gpiod_direction_output(state->hpd_gpio[i], 0);
2801 2801
2802 v4l_info(client, "Handling HPD %u GPIO\n", i); 2802 v4l_info(client, "Handling HPD %u GPIO\n", i);
2803 } 2803 }