diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-06-22 16:51:22 +0900 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2017-06-26 07:12:47 +0200 |
commit | 5e75ea15067ab8118a16f5b5f278ccae87819683 (patch) | |
tree | 2217704a92d05452f8358e35fe3d54d8c3b4dad8 /drivers/misc/i2c_eeprom.c | |
parent | 7df4ff2c2689a6d3c16eb0c3cce098fcac622b0c (diff) | |
download | u-boot-5e75ea15067ab8118a16f5b5f278ccae87819683.tar.gz |
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 <yamada.masahiro@socionext.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/misc/i2c_eeprom.c')
-rw-r--r-- | drivers/misc/i2c_eeprom.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |