]> git.sur5r.net Git - u-boot/commitdiff
i2c_eeprom: add static to i2c_eeprom_std_ops/probe
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 22 Jun 2017 07:51:22 +0000 (16:51 +0900)
committerHeiko Schocher <hs@denx.de>
Mon, 26 Jun 2017 05:12:47 +0000 (07:12 +0200)
These are only used in drivers/mis/i2c_eeprom.c

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/misc/i2c_eeprom.c

index da6e2b05f730158d6622cbde37dab9a28cf692ac..a14e83225bcc01c76b429b611c32b46f6d2d517f 100644 (file)
@@ -42,7 +42,7 @@ static int i2c_eeprom_std_write(struct udevice *dev, int offset,
        return -ENODEV;
 }
 
-struct i2c_eeprom_ops i2c_eeprom_std_ops = {
+static const struct i2c_eeprom_ops i2c_eeprom_std_ops = {
        .read   = i2c_eeprom_std_read,
        .write  = i2c_eeprom_std_write,
 };
@@ -59,7 +59,7 @@ static int i2c_eeprom_std_ofdata_to_platdata(struct udevice *dev)
        return 0;
 }
 
-int i2c_eeprom_std_probe(struct udevice *dev)
+static int i2c_eeprom_std_probe(struct udevice *dev)
 {
        return 0;
 }