From: Uwe Kleine-König Date: Tue, 17 Feb 2015 09:12:08 +0000 (+0100) Subject: i2c: pca954x: improve usage of gpiod API X-Git-Tag: omap-for-v4.1/fixes-rc1~146^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58b59e0f2462780ae3978611519f6a5e477e31df;p=pandora-kernel.git i2c: pca954x: 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 outputs. Also there is an *_optional variant that serves well here. The sematics is slightly changed here by using it. Now if a reset gpio is specified and getting hold on it fails, pca954x_probe fails, too. Signed-off-by: Uwe Kleine-König Acked-by: Laurent Pinchart Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed