intel_edison_fab_c.c: Remove dependency on debugfs
authorMihai Serban <mihai.serban@intel.com>
Mon, 9 Nov 2015 15:59:56 +0000 (17:59 +0200)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Fri, 4 Dec 2015 15:37:20 +0000 (15:37 +0000)
commit5cf54fdbc26be56b9ac19887d0f86223bfe21c8d
tree5e339e0dcefd3f6c558f3c7966260ddd0101a27f
parent759d387c5a8be8534b83d2ec875f66400d642871
intel_edison_fab_c.c: Remove dependency on debugfs

The MRAA library needs the debugfs interface in order to access GPIO
pin modes attributes. Mounting the debugfs is not always desirable so this
patch instructs libmraa to first check for the required attributes in
the normal SYSFS CLASS GPIO interface and to use debugfs as a fallback.

Signed-off-by: Mihai Serban <mihai.serban@intel.com>
Signed-off-by: Constantin Musca <constantin.musca@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/x86/intel_edison_fab_c.c