edison: fix SPI IO pointers usage
authorMihai Serban <mihai.serban@intel.com>
Mon, 16 Nov 2015 17:10:12 +0000 (19:10 +0200)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Fri, 4 Dec 2015 15:37:19 +0000 (15:37 +0000)
commit759d387c5a8be8534b83d2ec875f66400d642871
tree2fd36058f2a3d71a09d9a066cbff3a46064d62c8
parentccafc77641b21672881e8f75fe44d017e5147402
edison: fix SPI IO pointers usage

Check if SPI IO pointers are holding valid data before using them.

Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Mihai Serban <mihai.serban@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
api/mraa/common.h
src/x86/intel_edison_fab_c.c