Merge tag 'driver-core-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-block.git] / drivers / thunderbolt / tb.h
index 2953cf38c29ed50181fa8b6b771c17eb5a3335e9..cbb20a2773462ab892c2e4e242becbe3085dc0bf 100644 (file)
@@ -837,7 +837,7 @@ static inline bool tb_is_switch(const struct device *dev)
        return dev->type == &tb_switch_type;
 }
 
-static inline struct tb_switch *tb_to_switch(struct device *dev)
+static inline struct tb_switch *tb_to_switch(const struct device *dev)
 {
        if (tb_is_switch(dev))
                return container_of(dev, struct tb_switch, dev);