From: Masahiro Yamada Date: Thu, 22 Jun 2017 07:51:22 +0000 (+0900) Subject: i2c_eeprom: add static to i2c_eeprom_std_ops/probe X-Git-Tag: v2017.07-rc3~30^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5e75ea15067ab8118a16f5b5f278ccae87819683;p=u-boot i2c_eeprom: add static to i2c_eeprom_std_ops/probe These are only used in drivers/mis/i2c_eeprom.c Signed-off-by: Masahiro Yamada Reviewed-by: Bin Meng --- diff --git a/drivers/misc/i2c_eeprom.c b/drivers/misc/i2c_eeprom.c index da6e2b05f7..a14e83225b 100644 --- a/drivers/misc/i2c_eeprom.c +++ b/drivers/misc/i2c_eeprom.c @@ -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; }