diff options
Diffstat (limited to 'drivers/misc/mei/wd.c')
-rw-r--r-- | drivers/misc/mei/wd.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/misc/mei/wd.c b/drivers/misc/mei/wd.c index 9299a8c29a6f..9d4d4aa0f0e8 100644 --- a/drivers/misc/mei/wd.c +++ b/drivers/misc/mei/wd.c | |||
@@ -101,22 +101,22 @@ int mei_wd_host_init(struct mei_device *dev) | |||
101 | */ | 101 | */ |
102 | int mei_wd_send(struct mei_device *dev) | 102 | int mei_wd_send(struct mei_device *dev) |
103 | { | 103 | { |
104 | struct mei_msg_hdr *mei_hdr; | 104 | struct mei_msg_hdr *hdr; |
105 | 105 | ||
106 | mei_hdr = (struct mei_msg_hdr *) &dev->wr_msg_buf[0]; | 106 | hdr = (struct mei_msg_hdr *) &dev->wr_msg_buf[0]; |
107 | mei_hdr->host_addr = dev->wd_cl.host_client_id; | 107 | hdr->host_addr = dev->wd_cl.host_client_id; |
108 | mei_hdr->me_addr = dev->wd_cl.me_client_id; | 108 | hdr->me_addr = dev->wd_cl.me_client_id; |
109 | mei_hdr->msg_complete = 1; | 109 | hdr->msg_complete = 1; |
110 | mei_hdr->reserved = 0; | 110 | hdr->reserved = 0; |
111 | 111 | ||
112 | if (!memcmp(dev->wd_data, mei_start_wd_params, MEI_WD_HDR_SIZE)) | 112 | if (!memcmp(dev->wd_data, mei_start_wd_params, MEI_WD_HDR_SIZE)) |
113 | mei_hdr->length = MEI_WD_START_MSG_SIZE; | 113 | hdr->length = MEI_WD_START_MSG_SIZE; |
114 | else if (!memcmp(dev->wd_data, mei_stop_wd_params, MEI_WD_HDR_SIZE)) | 114 | else if (!memcmp(dev->wd_data, mei_stop_wd_params, MEI_WD_HDR_SIZE)) |
115 | mei_hdr->length = MEI_WD_STOP_MSG_SIZE; | 115 | hdr->length = MEI_WD_STOP_MSG_SIZE; |
116 | else | 116 | else |
117 | return -EINVAL; | 117 | return -EINVAL; |
118 | 118 | ||
119 | return mei_write_message(dev, mei_hdr, dev->wd_data, mei_hdr->length); | 119 | return mei_write_message(dev, hdr, dev->wd_data); |
120 | } | 120 | } |
121 | 121 | ||
122 | /** | 122 | /** |