aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 3136ede5a1e1..2fe0005543ed 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -294,7 +294,7 @@ struct class {
294 struct kobject *dev_kobj; 294 struct kobject *dev_kobj;
295 295
296 int (*dev_uevent)(struct device *dev, struct kobj_uevent_env *env); 296 int (*dev_uevent)(struct device *dev, struct kobj_uevent_env *env);
297 char *(*devnode)(struct device *dev, mode_t *mode); 297 char *(*devnode)(struct device *dev, umode_t *mode);
298 298
299 void (*class_release)(struct class *class); 299 void (*class_release)(struct class *class);
300 void (*dev_release)(struct device *dev); 300 void (*dev_release)(struct device *dev);
@@ -423,7 +423,7 @@ struct device_type {
423 const char *name; 423 const char *name;
424 const struct attribute_group **groups; 424 const struct attribute_group **groups;
425 int (*uevent)(struct device *dev, struct kobj_uevent_env *env); 425 int (*uevent)(struct device *dev, struct kobj_uevent_env *env);
426 char *(*devnode)(struct device *dev, mode_t *mode); 426 char *(*devnode)(struct device *dev, umode_t *mode);
427 void (*release)(struct device *dev); 427 void (*release)(struct device *dev);
428 428
429 const struct dev_pm_ops *pm; 429 const struct dev_pm_ops *pm;
@@ -720,7 +720,7 @@ extern int device_rename(struct device *dev, const char *new_name);
720extern int device_move(struct device *dev, struct device *new_parent, 720extern int device_move(struct device *dev, struct device *new_parent,
721 enum dpm_order dpm_order); 721 enum dpm_order dpm_order);
722extern const char *device_get_devnode(struct device *dev, 722extern const char *device_get_devnode(struct device *dev,
723 mode_t *mode, const char **tmp); 723 umode_t *mode, const char **tmp);
724extern void *dev_get_drvdata(const struct device *dev); 724extern void *dev_get_drvdata(const struct device *dev);
725extern int dev_set_drvdata(struct device *dev, void *data); 725extern int dev_set_drvdata(struct device *dev, void *data);
726 726