summaryrefslogtreecommitdiff
path: root/udev_utils.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-12 21:41:57 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:53:17 -0700
commite6764498e7592f216a1895eacc485448fa4a1660 (patch)
tree11c81e7174f0bcb5774568f569985589584fbc19 /udev_utils.c
parent319112e295bbf1ed5d86389190abbe24ce251b14 (diff)
[PATCH] correct enum device_type
Diffstat (limited to 'udev_utils.c')
-rw-r--r--udev_utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/udev_utils.c b/udev_utils.c
index afa9790fdc..b650096593 100644
--- a/udev_utils.c
+++ b/udev_utils.c
@@ -53,13 +53,13 @@ int udev_init_device(struct udevice *udev, const char* devpath, const char *subs
no_trailing_slash(udev->devpath);
if (strncmp(udev->devpath, "/block/", 7) == 0)
- udev->type = BLOCK;
+ udev->type = DEV_BLOCK;
else if (strncmp(udev->devpath, "/class/net/", 11) == 0)
- udev->type = NET;
+ udev->type = DEV_NET;
else if (strncmp(udev->devpath, "/class/", 7) == 0)
- udev->type = CLASS;
+ udev->type = DEV_CLASS;
else if (strncmp(udev->devpath, "/devices/", 9) == 0)
- udev->type = PHYSDEV;
+ udev->type = DEV_DEVICE;
/* get kernel name */
pos = strrchr(udev->devpath, '/');