i2c: mpc: report correct I2C error return codes
authorDanielle Costantino <danielle.costantino@gmail.com>
Wed, 12 Nov 2014 13:08:09 +0000 (05:08 -0800)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 12 Nov 2014 15:34:11 +0000 (16:34 +0100)
commitab0831d0f35b44724390134d03bcff99ae0d8a7e
tree5cf920115157bc2ab112e8c9f8cb42736b4bfd3c
parent550d0407a8c0be348e9f6f5c24de8478101d995b
i2c: mpc: report correct I2C error return codes

This patch enforces correct I2C error returned codes from Freescale's
MPC i2c bus driver, allowing for proper user-space/kernel error
handling.

Signed-off-by: Danielle Costantino <danielle.costantino@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mpc.c