mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
i2c: Remove I2C_GET_BUS()
This is very old, predating even the legacy I2C support, so drop it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
committed by
Heiko Schocher
parent
986ef77061
commit
4b8d78cb79
@@ -947,13 +947,6 @@ unsigned int i2c_get_bus_speed(void);
|
||||
# define I2C_MULTI_BUS 0
|
||||
#endif
|
||||
|
||||
/* NOTE: These two functions MUST be always_inline to avoid code growth! */
|
||||
static inline unsigned int I2C_GET_BUS(void) __attribute__((always_inline));
|
||||
static inline unsigned int I2C_GET_BUS(void)
|
||||
{
|
||||
return I2C_MULTI_BUS ? i2c_get_bus_num() : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the I2C bus number by given a FDT I2C node.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user