i2c: imx: make bitrate an u32 type
authorWolfram Sang <wolfram@the-dreams.de>
Sun, 8 Jul 2012 11:11:43 +0000 (13:11 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Tue, 10 Jul 2012 08:43:37 +0000 (10:43 +0200)
commit8c88ab040115430fc146df7aa5a57538bf6d0e2d
tree4232cdc66b7ee2ec0eb15e5ea893105ef845346d
parent1f09c672314f8180113429ff36cad09296c40a9f
i2c: imx: make bitrate an u32 type

sparse found this assignment of u32 to an int. Fix it:

drivers/i2c/busses/i2c-imx.c:540:56: warning: incorrect type in argument 3 (different signedness)

and also fix the type in platform_data. All current users use values
which fit into the old and new type, so it is a safe change.

Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
Reviewed-by: Richard Zhao <richard.zhao@freescale.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/include/mach/i2c.h
drivers/i2c/busses/i2c-imx.c