mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Driver Core: misc: add nodename support for misc devices.
This adds support for misc devices to report their requested nodename to userspace. It also updates a number of misc drivers to provide the needed subdirectory and device name to be used for them. Signed-off-by: Kay Sievers <[email protected]> Signed-off-by: Jan Blunck <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
6fcf53accc
commit
d405640539
6 changed files with 17 additions and 3 deletions
|
|
@ -1366,6 +1366,7 @@ static const struct file_operations tun_fops = {
|
|||
static struct miscdevice tun_miscdev = {
|
||||
.minor = TUN_MINOR,
|
||||
.name = "tun",
|
||||
.devnode = "net/tun",
|
||||
.fops = &tun_fops,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue