summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-06-22 07:51:22 (GMT)
committerHeiko Schocher <hs@denx.de>2017-06-26 05:12:47 (GMT)
commit5e75ea15067ab8118a16f5b5f278ccae87819683 (patch)
tree2217704a92d05452f8358e35fe3d54d8c3b4dad8 /drivers/misc
parent7df4ff2c2689a6d3c16eb0c3cce098fcac622b0c (diff)
downloadu-boot-fsl-qoriq-5e75ea15067ab8118a16f5b5f278ccae87819683.tar.xz
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')
-rw-r--r--drivers/misc/i2c_eeprom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/i2c_eeprom.c b/drivers/misc/i2c_eeprom.c
index da6e2b0..a14e832 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;
}