[U-Boot] unneeded exported function i2c_mux_add_device

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Wed Mar 24 20:03:00 CET 2010


Dear list:

While grepping some sources I bumped upon i2c_mux_add_device
This one is implemented in cmd_i2c.c and exported through i2c.h.
However no-one outside cmd_i2c.c is using it:

frans at linux-suse:~/u-boot> grep -r i2c_mux_add_device .
./common/cmd_i2c.c:int i2c_mux_add_device(I2C_MUX_DEVICE *dev)
./common/cmd_i2c.c:		i2c_mux_add_device (device);
./include/i2c.h:int	i2c_mux_add_device(I2C_MUX_DEVICE *dev);
frans at linux-suse:~/u-boot>

Should we make this function static and remove from the .h file?

Frans

PS: the grep is on an up-to-date next branch


More information about the U-Boot mailing list