aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-23 20:24:48 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:54:55 -0500
commit2c9ede55ecec58099b72e4bb8eab719f32f72c31 (patch)
tree8498a8c940fea97931b469fc73eb1a5022a2b28c /drivers/base
parent7d54fa6472609f2b0f2ea27e51ec2cf1fb27bd57 (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 'drivers/base')
-rw-r--r--drivers/base/core.c4
-rw-r--r--drivers/base/devtmpfs.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 919daa7cd5b1..1dfa1d616fa5 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -198,7 +198,7 @@ static int dev_uevent(struct kset *kset, struct kobject *kobj,
198 if (MAJOR(dev->devt)) { 198 if (MAJOR(dev->devt)) {
199 const char *tmp; 199 const char *tmp;
200 const char *name; 200 const char *name;
201 mode_t mode = 0; 201 umode_t mode = 0;
202 202
203 add_uevent_var(env, "MAJOR=%u", MAJOR(dev->devt)); 203 add_uevent_var(env, "MAJOR=%u", MAJOR(dev->devt));
204 add_uevent_var(env, "MINOR=%u", MINOR(dev->devt)); 204 add_uevent_var(env, "MINOR=%u", MINOR(dev->devt));
@@ -1182,7 +1182,7 @@ static struct device *next_device(struct klist_iter *i)
1182 * freed by the caller. 1182 * freed by the caller.
1183 */ 1183 */
1184const char *device_get_devnode(struct device *dev, 1184const char *device_get_devnode(struct device *dev,
1185 mode_t *mode, const char **tmp) 1185 umode_t *mode, const char **tmp)
1186{ 1186{
1187 char *s; 1187 char *s;
1188 1188
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c
index a4760e095ff5..3990f682e690 100644
--- a/drivers/base/devtmpfs.c
+++ b/drivers/base/devtmpfs.c
@@ -40,7 +40,7 @@ static struct req {
40 struct completion done; 40 struct completion done;
41 int err; 41 int err;
42 const char *name; 42 const char *name;
43 mode_t mode; /* 0 => delete */ 43 umode_t mode; /* 0 => delete */
44 struct device *dev; 44 struct device *dev;
45} *requests; 45} *requests;
46 46