Skip to content
Snippets Groups Projects
Commit 4b8d78cb authored by Simon Glass's avatar Simon Glass Committed by Heiko Schocher
Browse files

i2c: Remove I2C_GET_BUS()


This is very old, predating even the legacy I2C support, so drop it.

Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
parent 986ef770
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment