fix indentation
modify signature of gpioGetI2cPin()

API is now similar to the other functions
i2c: use updated gpioGetI2cPin()
improve error checking
trim trailing spaces