]> git.sur5r.net Git - u-boot/commitdiff
mx6sxsabresd: Staticize i2c_pad_info1
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 13 Sep 2014 21:21:35 +0000 (18:21 -0300)
committerStefano Babic <sbabic@denx.de>
Tue, 16 Sep 2014 11:36:05 +0000 (13:36 +0200)
i2c_pad_info1 is only used locally, so it can be made static.

Fix the following sparse warning:

board/freescale/mx6sxsabresd/mx6sxsabresd.c:160:22: warning: symbol 'i2c_pad_info1' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/freescale/mx6sxsabresd/mx6sxsabresd.c

index 5eaec1bdb1b867ded38f67b90c36e93ead734b2a..68d37184a3399b59c0e8f136044cdfddc1908e2e 100644 (file)
@@ -157,7 +157,7 @@ int board_eth_init(bd_t *bis)
 
 #define PC MUX_PAD_CTRL(I2C_PAD_CTRL)
 /* I2C1 for PMIC */
-struct i2c_pads_info i2c_pad_info1 = {
+static struct i2c_pads_info i2c_pad_info1 = {
        .scl = {
                .i2c_mode = MX6_PAD_GPIO1_IO00__I2C1_SCL | PC,
                .gpio_mode = MX6_PAD_GPIO1_IO00__GPIO1_IO_0 | PC,