drivers/i2c/i2c.c: Fix sparse warnings
drivers/i2c/i2c.c:246:19: warning: symbol 'i2c_new_device' was not declared. Should it be static? drivers/i2c/i2c.c:274:6: warning: symbol 'of_i2c_register_devices' was not declared. Should it be static? Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
b6cec342d9
commit
132b10bc4a
|
@ -243,8 +243,8 @@ EXPORT_SYMBOL(i2c_write_reg);
|
||||||
*
|
*
|
||||||
* Returns the new device, or NULL.
|
* Returns the new device, or NULL.
|
||||||
*/
|
*/
|
||||||
struct i2c_client *i2c_new_device(struct i2c_adapter *adapter,
|
static struct i2c_client *i2c_new_device(struct i2c_adapter *adapter,
|
||||||
struct i2c_board_info *chip)
|
struct i2c_board_info *chip)
|
||||||
{
|
{
|
||||||
struct i2c_client *client;
|
struct i2c_client *client;
|
||||||
int status;
|
int status;
|
||||||
|
@ -269,9 +269,8 @@ struct i2c_client *i2c_new_device(struct i2c_adapter *adapter,
|
||||||
|
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(i2c_new_device);
|
|
||||||
|
|
||||||
void of_i2c_register_devices(struct i2c_adapter *adap)
|
static void of_i2c_register_devices(struct i2c_adapter *adap)
|
||||||
{
|
{
|
||||||
struct device_node *n;
|
struct device_node *n;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue