Skip to content

Commit

Permalink
[WATCHDOG] correct sysfs name for watchdog devices
Browse files Browse the repository at this point in the history
While looking for possible candidates for our udev.rules package,
I found a few odd ->name properties. /dev/watchdog has minor 130
according to devices.txt. Since all watchdog drivers use the
misc_register() call, they will end up in /sys/class/misc/$foo.
udev may create the /dev/watchdog node if the driver is loaded.
I dont have such a device, so I cant test it.
The drivers below provide names with spaces and even with / in it.
Not a big deal, but apps may expect /dev/watchdog.

Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Olaf Hering authored and Wim Van Sebroeck committed Sep 3, 2005
1 parent 09c8a9a commit 2dab3ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/char/watchdog/ixp2000_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ static struct file_operations ixp2000_wdt_fops =
static struct miscdevice ixp2000_wdt_miscdev =
{
.minor = WATCHDOG_MINOR,
.name = "IXP2000 Watchdog",
.name = "watchdog",
.fops = &ixp2000_wdt_fops,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/char/watchdog/ixp4xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static struct file_operations ixp4xx_wdt_fops =
static struct miscdevice ixp4xx_wdt_miscdev =
{
.minor = WATCHDOG_MINOR,
.name = "IXP4xx Watchdog",
.name = "watchdog",
.fops = &ixp4xx_wdt_fops,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/char/watchdog/scx200_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static struct file_operations scx200_wdt_fops = {

static struct miscdevice scx200_wdt_miscdev = {
.minor = WATCHDOG_MINOR,
.name = NAME,
.name = "watchdog",
.fops = &scx200_wdt_fops,
};

Expand Down

0 comments on commit 2dab3ca

Please sign in to comment.