i3c: master: make i3c_bus_set_mode static
authorBenjamin Gaignard <benjamin.gaignard@st.com>
Wed, 4 Dec 2019 10:56:30 +0000 (11:56 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 9 Dec 2019 15:07:39 +0000 (16:07 +0100)
i3c_bus_set_mode function is only used in master.c.
Make it static to avoid warning when compiling with W=1.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/i3c/master.c

index 043691656245839614e458d4367151141c7c3568..7f8f896fa0c38bb710b21560368c44d4ce94a979 100644 (file)
@@ -527,8 +527,8 @@ static const struct device_type i3c_masterdev_type = {
        .groups = i3c_masterdev_groups,
 };
 
-int i3c_bus_set_mode(struct i3c_bus *i3cbus, enum i3c_bus_mode mode,
-                    unsigned long max_i2c_scl_rate)
+static int i3c_bus_set_mode(struct i3c_bus *i3cbus, enum i3c_bus_mode mode,
+                           unsigned long max_i2c_scl_rate)
 {
        struct i3c_master_controller *master = i3c_bus_to_i3c_master(i3cbus);