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>
This commit is contained in:
@@ -715,7 +715,7 @@ static void ir_close(struct input_dev *idev)
|
||||
}
|
||||
|
||||
/* class for /sys/class/rc */
|
||||
static char *ir_devnode(struct device *dev, mode_t *mode)
|
||||
static char *ir_devnode(struct device *dev, umode_t *mode)
|
||||
{
|
||||
return kasprintf(GFP_KERNEL, "rc/%s", dev_name(dev));
|
||||
}
|
||||
|
Fai riferimento in un nuovo problema
Block a user