From: Simon Glass Date: Sun, 11 Aug 2024 14:50:43 +0000 (-0600) Subject: i2c: Remove I2C_GET_BUS() X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=4b8d78cb79df40b93134938c35cb86566d849cb4;p=u-boot.git i2c: Remove I2C_GET_BUS() This is very old, predating even the legacy I2C support, so drop it. Signed-off-by: Simon Glass Reviewed-by: Heiko Schocher --- diff --git a/include/i2c.h b/include/i2c.h index 1d1430b74a..b6727bb2a7 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -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. *