gpio.c: check that real gpio did initialise correctly
authorHenry Bruce <henry.bruce@intel.com>
Sat, 15 Nov 2014 00:32:55 +0000 (16:32 -0800)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Thu, 20 Nov 2014 15:08:31 +0000 (15:08 +0000)
commit57540cd86cae9d42649e59028a489506063c2f0f
tree7bfc23822e89d77b0ddd26bdf0c03a54ea59f207
parent6bc2b0fb53865c85c786f7f2a0393d88e7784c08
gpio.c: check that real gpio did initialise correctly

On platforms without muxing perform a little more checking when the 'real'
linux/sysfs gpio is opened. We don't expect this to fail but on platforms where
the linux gpios can be changed depending on pinctrl/bios configuration this
might not always be the case.

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/gpio/gpio.c