driver core: make struct device_type.uevent() take a const *
[linux-block.git] / drivers / i2c / i2c-core-base.c
index 087e480b624cb2dde420183fb80a8651c27d8101..51b78a52ab7fc1106470693ed942b3286b308698 100644 (file)
@@ -136,9 +136,9 @@ static int i2c_device_match(struct device *dev, struct device_driver *drv)
        return 0;
 }
 
-static int i2c_device_uevent(struct device *dev, struct kobj_uevent_env *env)
+static int i2c_device_uevent(const struct device *dev, struct kobj_uevent_env *env)
 {
-       struct i2c_client *client = to_i2c_client(dev);
+       const struct i2c_client *client = to_i2c_client(dev);
        int rc;
 
        rc = of_device_uevent_modalias(dev, env);