]> git.sur5r.net Git - u-boot/commitdiff
i2c: made unused function i2c_mux_add_device static
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Fri, 26 Mar 2010 08:46:42 +0000 (09:46 +0100)
committerHeiko Schocher <hs@denx.de>
Mon, 29 Mar 2010 11:29:12 +0000 (13:29 +0200)
and removed it from the .h file

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
common/cmd_i2c.c
include/i2c.h

index e98b35c74700afe6bb0b5045dee46d72082e2b97..8b9c2c9490e174f1950dbe4852a089556f760ad5 100644 (file)
@@ -1357,7 +1357,7 @@ U_BOOT_CMD(
 );
 
 #if defined(CONFIG_I2C_MUX)
-int i2c_mux_add_device(I2C_MUX_DEVICE *dev)
+static int i2c_mux_add_device(I2C_MUX_DEVICE *dev)
 {
        I2C_MUX_DEVICE  *devtmp = i2c_mux_devices;
 
index 31088b675a36b021d24222ba5e81c83287d4cefc..d828964256eb9d14374168c2cf384d4ab10f8df4 100644 (file)
@@ -127,8 +127,6 @@ typedef struct _mux_device {
        struct _mux_device      *next;
 } I2C_MUX_DEVICE;
 
-int    i2c_mux_add_device(I2C_MUX_DEVICE *dev);
-
 I2C_MUX_DEVICE *i2c_mux_search_device(int id);
 I2C_MUX_DEVICE *i2c_mux_ident_muxstring (uchar *buf);
 int i2x_mux_select_mux(int bus);