Merge tag 'driver-core-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-block.git] / drivers / thunderbolt / switch.c
index e1ad1b437291f647f153ed75122b0ffb1fb9203a..3370e18ba05f9348c37ec526bbd7641f2673225b 100644 (file)
@@ -2184,9 +2184,9 @@ static void tb_switch_release(struct device *dev)
        kfree(sw);
 }
 
-static int tb_switch_uevent(struct device *dev, struct kobj_uevent_env *env)
+static int tb_switch_uevent(const struct device *dev, struct kobj_uevent_env *env)
 {
-       struct tb_switch *sw = tb_to_switch(dev);
+       const struct tb_switch *sw = tb_to_switch(dev);
        const char *type;
 
        if (sw->config.thunderbolt_version == USB4_VERSION_1_0) {