Skip to content

Commit b8842f2

Browse files
Dr. David Alan GilbertJiri Kosina
authored andcommitted
HID: intel-ish-hid: Remove unused ishtp_cl_get_tx_*
ishtp_cl_get_tx_free_buffer_size() and ishtp_cl_get_tx_free_rings() were added in 2018 by commit 18c0b54 ("HID: intel_ish-hid: Enhance API to get ring buffer sizes") but have remained unused. Remove them. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent 6657d89 commit b8842f2

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

drivers/hid/intel-ish-hid/ishtp/client.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,6 @@
1414
#include "hbm.h"
1515
#include "client.h"
1616

17-
int ishtp_cl_get_tx_free_buffer_size(struct ishtp_cl *cl)
18-
{
19-
unsigned long tx_free_flags;
20-
int size;
21-
22-
spin_lock_irqsave(&cl->tx_free_list_spinlock, tx_free_flags);
23-
size = cl->tx_ring_free_size * cl->device->fw_client->props.max_msg_length;
24-
spin_unlock_irqrestore(&cl->tx_free_list_spinlock, tx_free_flags);
25-
26-
return size;
27-
}
28-
EXPORT_SYMBOL(ishtp_cl_get_tx_free_buffer_size);
29-
30-
int ishtp_cl_get_tx_free_rings(struct ishtp_cl *cl)
31-
{
32-
return cl->tx_ring_free_size;
33-
}
34-
EXPORT_SYMBOL(ishtp_cl_get_tx_free_rings);
35-
3617
/**
3718
* ishtp_read_list_flush() - Flush read queue
3819
* @cl: ishtp client instance

drivers/hid/intel-ish-hid/ishtp/client.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ int ishtp_cl_alloc_rx_ring(struct ishtp_cl *cl);
120120
int ishtp_cl_alloc_tx_ring(struct ishtp_cl *cl);
121121
void ishtp_cl_free_rx_ring(struct ishtp_cl *cl);
122122
void ishtp_cl_free_tx_ring(struct ishtp_cl *cl);
123-
int ishtp_cl_get_tx_free_buffer_size(struct ishtp_cl *cl);
124-
int ishtp_cl_get_tx_free_rings(struct ishtp_cl *cl);
125123

126124
/* DMA I/F functions */
127125
void recv_ishtp_cl_msg_dma(struct ishtp_device *dev, void *msg,

0 commit comments

Comments
 (0)