Skip to content

Commit

Permalink
w1: move w1 commands from defines to enum
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Evgeniy Polyakov authored and Linus Torvalds committed Jan 8, 2009
1 parent c7e2663 commit 325a06f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions drivers/w1/w1_netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 325a06f

Please sign in to comment.