mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
w1: added w1 reset command
Command which allows to reset the bus. Signed-off-by: Evgeniy Polyakov <[email protected]> Cc: Paul Alfille <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
325a06fb13
commit
f89735c4e2
3 changed files with 10 additions and 0 deletions
|
|
@ -197,6 +197,9 @@ static int w1_process_command_master(struct w1_master *dev, struct cn_msg *req_m
|
|||
case W1_CMD_TOUCH:
|
||||
err = w1_process_command_io(dev, msg, hdr, cmd);
|
||||
break;
|
||||
case W1_CMD_RESET:
|
||||
err = w1_reset_bus(dev);
|
||||
break;
|
||||
default:
|
||||
cmd->res = EINVAL;
|
||||
cn_netlink_send(msg, 0, GFP_KERNEL);
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ enum w1_commands {
|
|||
W1_CMD_SEARCH,
|
||||
W1_CMD_ALARM_SEARCH,
|
||||
W1_CMD_TOUCH,
|
||||
W1_CMD_RESET,
|
||||
W1_CMD_MAX,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue