From: Uwe Kleine-König Date: Thu, 26 Mar 2015 20:47:53 +0000 (-0300) Subject: [media] media: radio-si4713: improve usage of gpiod API X-Git-Tag: omap-for-v4.2/o2_dc~62^2~1^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b36ae8532f48916d46f92c048d4866ee50e5fc67;p=pandora-kernel.git [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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed