i2c: mxs: Fix type of error code
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 8 Jan 2013 00:32:06 +0000 (22:32 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jan 2013 04:49:02 +0000 (20:49 -0800)
commit52687280c7c9e5bf6d1756ba8c86d52c2ebfa481
treef6120de70fce37a88627ae3ea42368b328e8e13a
parent5f37ca96b441bcf255c4361a6b6e1873603a92f3
i2c: mxs: Fix type of error code

commit 0f40cbc4f85e13b1a42ae2f41231645a14965872 upstream.

cmd_err is used to handle error code, so it should not be unsigned.

This fixes the following warning when building with W=1 option:

drivers/i2c/busses/i2c-mxs.c: In function 'mxs_i2c_xfer_msg':
drivers/i2c/busses/i2c-mxs.c:331:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-mxs.c