forked from Minki/linux
8c88ab0401
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>
22 lines
420 B
C
22 lines
420 B
C
/*
|
|
* i2c.h - i.MX I2C driver header file
|
|
*
|
|
* Copyright (c) 2008, Darius Augulis <augulis.darius@gmail.com>
|
|
*
|
|
* This file is released under the GPLv2
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_I2C_H_
|
|
#define __ASM_ARCH_I2C_H_
|
|
|
|
/**
|
|
* struct imxi2c_platform_data - structure of platform data for MXC I2C driver
|
|
* @bitrate: Bus speed measured in Hz
|
|
*
|
|
**/
|
|
struct imxi2c_platform_data {
|
|
u32 bitrate;
|
|
};
|
|
|
|
#endif /* __ASM_ARCH_I2C_H_ */
|