Commit 325a06fb authored by Evgeniy Polyakov's avatar Evgeniy Polyakov Committed by Linus Torvalds

w1: move w1 commands from defines to enum

Signed-off-by: default avatarEvgeniy Polyakov <zbr@ioremap.net>
Cc: Paul Alfille <paul.alfille@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c7e26631
...@@ -52,11 +52,14 @@ struct w1_netlink_msg ...@@ -52,11 +52,14 @@ struct w1_netlink_msg
__u8 data[0]; __u8 data[0];
}; };
#define W1_CMD_READ 0x0 enum w1_commands {
#define W1_CMD_WRITE 0x1 W1_CMD_READ = 0,
#define W1_CMD_SEARCH 0x2 W1_CMD_WRITE,
#define W1_CMD_ALARM_SEARCH 0x3 W1_CMD_SEARCH,
#define W1_CMD_TOUCH 0x4 W1_CMD_ALARM_SEARCH,
W1_CMD_TOUCH,
W1_CMD_MAX,
};
struct w1_netlink_cmd struct w1_netlink_cmd
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment