]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
i2c: Remove I2C_GET_BUS()
authorSimon Glass <sjg@chromium.org>
Sun, 11 Aug 2024 14:50:43 +0000 (08:50 -0600)
committerHeiko Schocher <hs@denx.de>
Tue, 13 Aug 2024 04:16:01 +0000 (06:16 +0200)
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>
include/i2c.h

index 1d1430b74a61451d0adff47659f09895fdf5085d..b6727bb2a739e5141165a3adeadb0f7c8d1ffc81 100644 (file)
@@ -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.
  *