diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2014-06-23 00:22:08 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-07-18 17:53:23 -0400 |
commit | 0e350f81e1ca7d103fd9685725f9c4b0d9e80632 (patch) | |
tree | 05af9f8bb5f3a0c4cc03c7624880d6ee7927b93c /common/cmd_i2c.c | |
parent | e259d6a320d0280f02966b8bc35316fb136c5e24 (diff) | |
download | u-boot-imx-0e350f81e1ca7d103fd9685725f9c4b0d9e80632.zip u-boot-imx-0e350f81e1ca7d103fd9685725f9c4b0d9e80632.tar.gz u-boot-imx-0e350f81e1ca7d103fd9685725f9c4b0d9e80632.tar.bz2 |
common: commands: make commands static
Since most commands are not public, make them static. This
prevents warnings that no common prototype is available.
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'common/cmd_i2c.c')
-rw-r--r-- | common/cmd_i2c.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c index d714658..3a75f94 100644 --- a/common/cmd_i2c.c +++ b/common/cmd_i2c.c @@ -1366,7 +1366,8 @@ int do_edid(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) * Returns zero always. */ #if defined(CONFIG_SYS_I2C) -int do_i2c_show_bus(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_i2c_show_bus(cmd_tbl_t *cmdtp, int flag, int argc, + char * const argv[]) { int i; #ifndef CONFIG_SYS_I2C_DIRECT_BUS @@ -1425,7 +1426,8 @@ int do_i2c_show_bus(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) * on error. */ #if defined(CONFIG_SYS_I2C) || defined(CONFIG_I2C_MULTI_BUS) -int do_i2c_bus_num(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_i2c_bus_num(cmd_tbl_t *cmdtp, int flag, int argc, + char * const argv[]) { int ret = 0; unsigned int bus_no; |