]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
i2c: muxes: i2c_mux_select/deselect() should be static
authorMichal Simek <michal.simek@amd.com>
Fri, 7 Nov 2025 09:09:12 +0000 (10:09 +0100)
committerHeiko Schocher <hs@nabladev.com>
Sat, 15 Nov 2025 06:37:25 +0000 (07:37 +0100)
i2c_mux_select/deselect() are not called out of i2c-mux-uclass.c that's why
they should be static.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Heiko Schocher <hs@nabladev.com>
drivers/i2c/muxes/i2c-mux-uclass.c

index 012881de05bfb8652518f6b881f1cf418ac93805..7f4eb914af2e82266cbf5bc39e8352a1183e1b31 100644 (file)
@@ -130,7 +130,7 @@ static int i2c_mux_post_probe(struct udevice *mux)
        return 0;
 }
 
-int i2c_mux_select(struct udevice *dev)
+static int i2c_mux_select(struct udevice *dev)
 {
        struct i2c_mux_bus *plat = dev_get_parent_plat(dev);
        struct udevice *mux = dev->parent;
@@ -142,7 +142,7 @@ int i2c_mux_select(struct udevice *dev)
        return ops->select(mux, dev, plat->channel);
 }
 
-int i2c_mux_deselect(struct udevice *dev)
+static int i2c_mux_deselect(struct udevice *dev)
 {
        struct i2c_mux_bus *plat = dev_get_parent_plat(dev);
        struct udevice *mux = dev->parent;