diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2012-06-25 16:46:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-26 18:59:44 -0400 |
commit | 726917f052e62d8012f63a763884957610399afb (patch) | |
tree | c3a8b57cd85180887357a90270a9d66c8cfce14b /drivers/misc/mei/interrupt.c | |
parent | 24aadc809f270857743e62d0882865fb3ba195d9 (diff) |
mei: revamp host buffer interface function
1. Use unified _hbuf_ prefix for host/write buffer functions.
2. Cleanup the code w/o functional changes.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/interrupt.c')
-rw-r--r-- | drivers/misc/mei/interrupt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index 4ad6a6bab5a3..1872a2a760e5 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c | |||
@@ -280,7 +280,7 @@ static int _mei_irq_thread_iamthif_read(struct mei_device *dev, s32 *slots) | |||
280 | dev->iamthif_msg_buf_index = 0; | 280 | dev->iamthif_msg_buf_index = 0; |
281 | dev->iamthif_msg_buf_size = 0; | 281 | dev->iamthif_msg_buf_size = 0; |
282 | dev->iamthif_stall_timer = IAMTHIF_STALL_TIMER; | 282 | dev->iamthif_stall_timer = IAMTHIF_STALL_TIMER; |
283 | dev->mei_host_buffer_is_empty = mei_host_buffer_is_empty(dev); | 283 | dev->mei_host_buffer_is_empty = mei_hbuf_is_empty(dev); |
284 | return 0; | 284 | return 0; |
285 | } | 285 | } |
286 | 286 | ||
@@ -1199,11 +1199,11 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list, | |||
1199 | struct mei_io_list *list; | 1199 | struct mei_io_list *list; |
1200 | int ret; | 1200 | int ret; |
1201 | 1201 | ||
1202 | if (!mei_host_buffer_is_empty(dev)) { | 1202 | if (!mei_hbuf_is_empty(dev)) { |
1203 | dev_dbg(&dev->pdev->dev, "host buffer is not empty.\n"); | 1203 | dev_dbg(&dev->pdev->dev, "host buffer is not empty.\n"); |
1204 | return 0; | 1204 | return 0; |
1205 | } | 1205 | } |
1206 | *slots = mei_count_empty_write_slots(dev); | 1206 | *slots = mei_hbuf_empty_slots(dev); |
1207 | if (*slots <= 0) | 1207 | if (*slots <= 0) |
1208 | return -EMSGSIZE; | 1208 | return -EMSGSIZE; |
1209 | 1209 | ||
@@ -1558,7 +1558,7 @@ irqreturn_t mei_interrupt_thread_handler(int irq, void *dev_id) | |||
1558 | end: | 1558 | end: |
1559 | dev_dbg(&dev->pdev->dev, "end of bottom half function.\n"); | 1559 | dev_dbg(&dev->pdev->dev, "end of bottom half function.\n"); |
1560 | dev->host_hw_state = mei_hcsr_read(dev); | 1560 | dev->host_hw_state = mei_hcsr_read(dev); |
1561 | dev->mei_host_buffer_is_empty = mei_host_buffer_is_empty(dev); | 1561 | dev->mei_host_buffer_is_empty = mei_hbuf_is_empty(dev); |
1562 | 1562 | ||
1563 | bus_message_received = false; | 1563 | bus_message_received = false; |
1564 | if (dev->recvd_msg && waitqueue_active(&dev->wait_recvd_msg)) { | 1564 | if (dev->recvd_msg && waitqueue_active(&dev->wait_recvd_msg)) { |