w1: move w1 commands from defines to enum
authorEvgeniy Polyakov <zbr@ioremap.net>
Thu, 8 Jan 2009 02:09:03 +0000 (18:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 8 Jan 2009 16:31:13 +0000 (08:31 -0800)
Signed-off-by: Evgeniy Polyakov <zbr@ioremap.net>
Cc: Paul Alfille <paul.alfille@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/w1_netlink.h

index 99dd21ba14c6143d632bf9a8c4d3f8fb63eb44f3..01d86a71cf32a0bea559a0cc2f7b67b065a430c1 100644 (file)
@@ -52,11 +52,14 @@ struct w1_netlink_msg
        __u8                            data[0];
 };
 
-#define W1_CMD_READ            0x0
-#define W1_CMD_WRITE           0x1
-#define W1_CMD_SEARCH          0x2
-#define W1_CMD_ALARM_SEARCH    0x3
-#define W1_CMD_TOUCH           0x4
+enum w1_commands {
+       W1_CMD_READ = 0,
+       W1_CMD_WRITE,
+       W1_CMD_SEARCH,
+       W1_CMD_ALARM_SEARCH,
+       W1_CMD_TOUCH,
+       W1_CMD_MAX,
+};
 
 struct w1_netlink_cmd
 {