diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-23 20:24:48 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:54:55 -0500 |
commit | 2c9ede55ecec58099b72e4bb8eab719f32f72c31 (patch) | |
tree | 8498a8c940fea97931b469fc73eb1a5022a2b28c /include/linux/device.h | |
parent | 7d54fa6472609f2b0f2ea27e51ec2cf1fb27bd57 (diff) |
switch device_get_devnode() and ->devnode() to umode_t *
both callers of device_get_devnode() are only interested in lower 16bits
and nobody tries to return anything wider than 16bit anyway.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 6 |
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); | |||
720 | extern int device_move(struct device *dev, struct device *new_parent, | 720 | extern int device_move(struct device *dev, struct device *new_parent, |
721 | enum dpm_order dpm_order); | 721 | enum dpm_order dpm_order); |
722 | extern const char *device_get_devnode(struct device *dev, | 722 | extern const char *device_get_devnode(struct device *dev, |
723 | mode_t *mode, const char **tmp); | 723 | umode_t *mode, const char **tmp); |
724 | extern void *dev_get_drvdata(const struct device *dev); | 724 | extern void *dev_get_drvdata(const struct device *dev); |
725 | extern int dev_set_drvdata(struct device *dev, void *data); | 725 | extern int dev_set_drvdata(struct device *dev, void *data); |
726 | 726 | ||