[U-Boot] [PATCH 5/5:q i2c: made unused function i2c_mux_add_device static
Frans Meulenbroeks
fransmeulenbroeks at gmail.com
Fri Mar 26 09:46:42 CET 2010
and removed it from the .h file
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
---
common/cmd_i2c.c | 2 +-
include/i2c.h | 2 --
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c
index 5588a81..e74f359 100644
--- a/common/cmd_i2c.c
+++ b/common/cmd_i2c.c
@@ -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;
diff --git a/include/i2c.h b/include/i2c.h
index 31088b6..d828964 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -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);
--
1.6.4.2
More information about the U-Boot
mailing list