]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit8fc00c30106c0238dc5bfad4b068f04a5600c85f
tree701bc977648c1dc699eb178bc318ebfb322e0acb
parent4689726d2ef9166a21f657120ff76a0dbf081737
[media] media: radio-si4713: improve usage of gpiod API

Since f9251f4c2347 (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