Fix ADC and SPI for Edison

Fixed SPI config for ADC input. Also Fixed iio Dev number.
Fixed iio device number for Galileos and Edison
Safely initialise all pins to input on startup.

Signed-off-by: David Hunt <dave@davidhunt.ie>