-
由 Uwe Kleine-König 提交于
Since 39b2bbe3 (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 driver accordingly which even makes error checking more correct because gpiod_direction_{in,out}put might fail. Furthermore this is one caller less that stops us making the flags argument to gpiod_get*() mandatory. Acked-by: NOleg Zhurakivskyy <oleg.zhurakivskyy@intel.com> Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
3bfe7680