[media] tc358743: set direction of reset gpio using devm_gpiod_get
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 18 Aug 2015 08:31:09 +0000 (05:31 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Sep 2015 16:18:05 +0000 (13:18 -0300)
commit06d3f2e02024912d46e1fc8387c0284c9dfc36ad
treef4caf3e8e105dedd96fa392b6b45b3774615da46
parentd071c833a0d30e7aae0ea565d92ef83c79106d6f
[media] tc358743: set direction of reset gpio using devm_gpiod_get

Commit 256148246852 ("[media] tc358743: support probe from device tree")
failed to explicitly set the direction of the reset gpio. Use the
optional flag of devm_gpiod_get to make up leeway.

This is also necessary because the flag parameter will become mandatory
soon.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/tc358743.c