[media] media: radio-si4713: improve usage of gpiod API
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 26 Mar 2015 20:47:53 +0000 (17:47 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 8 Apr 2015 09:40:33 +0000 (06:40 -0300)
commitb36ae8532f48916d46f92c048d4866ee50e5fc67
tree701bc977648c1dc699eb178bc318ebfb322e0acb
parent4a203349593a636bff46c49be3f955e0a0c0b0d2
[media] media: radio-si4713: improve usage of gpiod API

Since 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions)
which appeared in v3.17-rc1, the gpiod_get* functions take an additional
parameter that allows to specify direction and initial value for output.
Simplify accordingly.

Moreover use the _optional variant which has tighter error checking, but
is simpler to use which allows further simplification.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/radio/si4713/si4713.c