x86/intel_minnow_max.c: Adjust gpio pins based on kernel version
authorJohn 'Warthog9' Hawley <john.hawley@intel.com>
Fri, 9 Jan 2015 00:22:49 +0000 (16:22 -0800)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 1 Jan 2001 02:53:16 +0000 (02:53 +0000)
commitd8bef92bbe4dcceb0a537d727698e96d7aa0e008
tree31c76102f8ddaa5e682a68763610d154c77517bc
parent62c3264b2c218b0bc88437bd3e9032338997ce59
x86/intel_minnow_max.c: Adjust gpio pins based on kernel version

This should adjust the pinouts, at runtime, based on the current
kernel that's in use.  The Linux kernel made a change between
3.17 and 3.18 ( specifically ea584595fc85e65796335033dfca25ed655cd0ed )
that changed the numbering for GPIOs.  This obviously breaks everything
for mraa on the MinnowBoard MAX if you have a 3.18 or newer kernel.

Signed-off-by: John 'Warthog9' Hawley <john.hawley@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/x86/intel_minnow_max.c