summaryrefslogtreecommitdiff
path: root/include/i2c.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-08-11 08:50:42 -0600
committerHeiko Schocher <hs@denx.de>2024-08-13 06:14:55 +0200
commit986ef77061df0627d87fdc6162649cfab3c15e3f (patch)
treeaa35b0a5227675f0ed3685359d4ad7d1378dfad9 /include/i2c.h
parentb76f37ce634456d46df73817738b3655efe49409 (diff)
i2c: Remove I2C_SET_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>
Diffstat (limited to 'include/i2c.h')
-rw-r--r--include/i2c.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/i2c.h b/include/i2c.h
index 45ca3d63e3f..1d1430b74a6 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -954,13 +954,6 @@ static inline unsigned int I2C_GET_BUS(void)
return I2C_MULTI_BUS ? i2c_get_bus_num() : 0;
}
-static inline void I2C_SET_BUS(unsigned int bus) __attribute__((always_inline));
-static inline void I2C_SET_BUS(unsigned int bus)
-{
- if (I2C_MULTI_BUS)
- i2c_set_bus_num(bus);
-}
-
/**
* Find the I2C bus number by given a FDT I2C node.
*