diff mbox series

[v2,14/18] i2c: Remove I2C_GET_BUS()

Message ID 20240811145047.4189460-15-sjg@chromium.org
State Accepted
Commit 4b8d78cb79df40b93134938c35cb86566d849cb4
Delegated to: Heiko Schocher
Headers show
Series i2c: Chip away at some old code | expand

Commit Message

Simon Glass Aug. 11, 2024, 2:50 p.m. UTC
This is very old, predating even the legacy I2C support, so drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 include/i2c.h | 7 -------
 1 file changed, 7 deletions(-)

Comments

Heiko Schocher Aug. 13, 2024, 4:14 a.m. UTC | #1
Hello Simon,

On 11.08.24 16:50, Simon Glass wrote:
> This is very old, predating even the legacy I2C support, so drop it.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
> (no changes since v1)
> 
>   include/i2c.h | 7 -------
>   1 file changed, 7 deletions(-)

Thanks!

Reviewed-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
diff mbox series

Patch

diff --git a/include/i2c.h b/include/i2c.h
index 1d1430b74a6..b6727bb2a73 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.
  *