diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2014-08-21 07:29:17 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-24 01:57:48 -0400 |
commit | 5a8373fba0ab2cec8d206747ad60ca4a30821a37 (patch) | |
tree | c72a0bc8a724772112680b06247ca99d9889ae9c /drivers/misc | |
parent | 89778d6e2a39027977e2de822808bd82afd6ea46 (diff) |
mei: use disconnect name consistently
Rename mei_cl_irq_close to mei_cl_irq_disconnect
and MEI_FOP_CLOSE to MEI_FOP_DISCONNECT
Remove unused MEI_FOP_OPEN
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/mei/client.c | 3 | ||||
-rw-r--r-- | drivers/misc/mei/interrupt.c | 8 | ||||
-rw-r--r-- | drivers/misc/mei/mei_dev.h | 6 |
3 files changed, 8 insertions, 9 deletions
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c index 1a4dafb77205..efac33929e53 100644 --- a/drivers/misc/mei/client.c +++ b/drivers/misc/mei/client.c | |||
@@ -516,7 +516,8 @@ int mei_cl_disconnect(struct mei_cl *cl) | |||
516 | goto free; | 516 | goto free; |
517 | } | 517 | } |
518 | 518 | ||
519 | cb->fop_type = MEI_FOP_CLOSE; | 519 | cb->fop_type = MEI_FOP_DISCONNECT; |
520 | |||
520 | if (mei_hbuf_acquire(dev)) { | 521 | if (mei_hbuf_acquire(dev)) { |
521 | if (mei_hbm_cl_disconnect_req(dev, cl)) { | 522 | if (mei_hbm_cl_disconnect_req(dev, cl)) { |
522 | rets = -ENODEV; | 523 | rets = -ENODEV; |
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index 19709b70874e..1b6c14b8642e 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c | |||
@@ -195,7 +195,7 @@ static int mei_cl_irq_disconnect_rsp(struct mei_cl *cl, struct mei_cl_cb *cb, | |||
195 | 195 | ||
196 | 196 | ||
197 | /** | 197 | /** |
198 | * mei_cl_irq_close - processes close related operation from | 198 | * mei_cl_irq_disconnect - processes close related operation from |
199 | * interrupt thread context - send disconnect request | 199 | * interrupt thread context - send disconnect request |
200 | * | 200 | * |
201 | * @cl: client | 201 | * @cl: client |
@@ -204,7 +204,7 @@ static int mei_cl_irq_disconnect_rsp(struct mei_cl *cl, struct mei_cl_cb *cb, | |||
204 | * | 204 | * |
205 | * returns 0, OK; otherwise, error. | 205 | * returns 0, OK; otherwise, error. |
206 | */ | 206 | */ |
207 | static int mei_cl_irq_close(struct mei_cl *cl, struct mei_cl_cb *cb, | 207 | static int mei_cl_irq_disconnect(struct mei_cl *cl, struct mei_cl_cb *cb, |
208 | struct mei_cl_cb *cmpl_list) | 208 | struct mei_cl_cb *cmpl_list) |
209 | { | 209 | { |
210 | struct mei_device *dev = cl->dev; | 210 | struct mei_device *dev = cl->dev; |
@@ -495,9 +495,9 @@ int mei_irq_write_handler(struct mei_device *dev, struct mei_cl_cb *cmpl_list) | |||
495 | return -ENODEV; | 495 | return -ENODEV; |
496 | } | 496 | } |
497 | switch (cb->fop_type) { | 497 | switch (cb->fop_type) { |
498 | case MEI_FOP_CLOSE: | 498 | case MEI_FOP_DISCONNECT: |
499 | /* send disconnect message */ | 499 | /* send disconnect message */ |
500 | ret = mei_cl_irq_close(cl, cb, cmpl_list); | 500 | ret = mei_cl_irq_disconnect(cl, cb, cmpl_list); |
501 | if (ret) | 501 | if (ret) |
502 | return ret; | 502 | return ret; |
503 | 503 | ||
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index 9f684b9b3c93..0922ce867d47 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h | |||
@@ -132,17 +132,15 @@ enum mei_wd_states { | |||
132 | * @MEI_FOP_READ - read | 132 | * @MEI_FOP_READ - read |
133 | * @MEI_FOP_WRITE - write | 133 | * @MEI_FOP_WRITE - write |
134 | * @MEI_FOP_CONNECT - connect | 134 | * @MEI_FOP_CONNECT - connect |
135 | * @MEI_FOP_DISCONNECT - disconnect | ||
135 | * @MEI_FOP_DISCONNECT_RSP - disconnect response | 136 | * @MEI_FOP_DISCONNECT_RSP - disconnect response |
136 | * @MEI_FOP_OPEN - open | ||
137 | * @MEI_FOP_CLOSE - close | ||
138 | */ | 137 | */ |
139 | enum mei_cb_file_ops { | 138 | enum mei_cb_file_ops { |
140 | MEI_FOP_READ = 0, | 139 | MEI_FOP_READ = 0, |
141 | MEI_FOP_WRITE, | 140 | MEI_FOP_WRITE, |
142 | MEI_FOP_CONNECT, | 141 | MEI_FOP_CONNECT, |
142 | MEI_FOP_DISCONNECT, | ||
143 | MEI_FOP_DISCONNECT_RSP, | 143 | MEI_FOP_DISCONNECT_RSP, |
144 | MEI_FOP_OPEN, | ||
145 | MEI_FOP_CLOSE | ||
146 | }; | 144 | }; |
147 | 145 | ||
148 | /* | 146 | /* |