peripheralman: i2c_read_bytes_data returns length of read bytes
peripheralman: i2c_read_bytes_data returns length of read bytes

Return length of read bytes rather than 0 on success.
MRAA calls I2C_RDWR ioctl which returns number of bytes read.
PIO is yet to implement that API so currently does I2C_SMBUS
ioctl instead, which returns 0 in case of success.

Signed-off-by: Sanrio Alvares <9291f26d690b1b38af7fb6e32b3eabba14676070@intel.com>

g-vidal/mraa,stefan-andritoiu/mraa,alext-mkrs/mraa,stefan-andritoiu/mraa,arfoll/mraa,jontrulson/mraa,spitfire88/mraa,malikabhi05/mraa,jontrulson/mraa,KurtE/mraa,stefan-andritoiu/mraa-gpio-chardev,KurtE/mraa,arfoll/mraa,yongli3/mraa,KurtE/mraa,yongli3/mraa,ncrastanaren/mraa,jontrulson/mraa,alext-mkrs/mraa,malikabhi05/mraa,Propanu/mraa,jontrulson/mraa,malikabhi05/mraa,Propanu/mraa,sergev/mraa,sergev/mraa,alext-mkrs/mraa,KurtE/mraa,Jon-ICS/mraa,alext-mkrs/mraa,Propanu/mraa,Propanu/mraa,intel-iot-devkit/mraa,intel-iot-devkit/mraa,arfoll/mraa,ncrastanaren/mraa,sergev/mraa,sergev/mraa,ncrastanaren/mraa,intel-iot-devkit/mraa,ncrastanaren/mraa,Propanu/mraa,arfoll/mraa,g-vidal/mraa,malikabhi05/mraa,spitfire88/mraa,yongli3/mraa,intel-iot-devkit/mraa,stefan-andritoiu/mraa,malikabhi05/mraa,ncrastanaren/mraa,Jon-ICS/mraa,arfoll/mraa,stefan-andritoiu/mraa-gpio-chardev,KurtE/mraa,sergev/mraa,yongli3/mraa,jontrulson/mraa,g-vidal/mraa,stefan-andritoiu/mraa-gpio-chardev,stefan-andritoiu/mraa,stefan-andritoiu/mraa,Jon-ICS/mraa,spitfire88/mraa,alext-mkrs/mraa,stefan-andritoiu/mraa-gpio-chardev,intel-iot-devkit/mraa,g-vidal/mraa,g-vidal/mraa,stefan-andritoiu/mraa-gpio-chardev,yongli3/mraa,spitfire88/mraa