mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
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 18c0b54674
("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>
This commit is contained in:
parent
6657d899ce
commit
b8842f202f
|
@ -14,25 +14,6 @@
|
|||
#include "hbm.h"
|
||||
#include "client.h"
|
||||
|
||||
int ishtp_cl_get_tx_free_buffer_size(struct ishtp_cl *cl)
|
||||
{
|
||||
unsigned long tx_free_flags;
|
||||
int size;
|
||||
|
||||
spin_lock_irqsave(&cl->tx_free_list_spinlock, tx_free_flags);
|
||||
size = cl->tx_ring_free_size * cl->device->fw_client->props.max_msg_length;
|
||||
spin_unlock_irqrestore(&cl->tx_free_list_spinlock, tx_free_flags);
|
||||
|
||||
return size;
|
||||
}
|
||||
EXPORT_SYMBOL(ishtp_cl_get_tx_free_buffer_size);
|
||||
|
||||
int ishtp_cl_get_tx_free_rings(struct ishtp_cl *cl)
|
||||
{
|
||||
return cl->tx_ring_free_size;
|
||||
}
|
||||
EXPORT_SYMBOL(ishtp_cl_get_tx_free_rings);
|
||||
|
||||
/**
|
||||
* ishtp_read_list_flush() - Flush read queue
|
||||
* @cl: ishtp client instance
|
||||
|
|
|
@ -120,8 +120,6 @@ int ishtp_cl_alloc_rx_ring(struct ishtp_cl *cl);
|
|||
int ishtp_cl_alloc_tx_ring(struct ishtp_cl *cl);
|
||||
void ishtp_cl_free_rx_ring(struct ishtp_cl *cl);
|
||||
void ishtp_cl_free_tx_ring(struct ishtp_cl *cl);
|
||||
int ishtp_cl_get_tx_free_buffer_size(struct ishtp_cl *cl);
|
||||
int ishtp_cl_get_tx_free_rings(struct ishtp_cl *cl);
|
||||
|
||||
/* DMA I/F functions */
|
||||
void recv_ishtp_cl_msg_dma(struct ishtp_device *dev, void *msg,
|
||||
|
|
Loading…
Reference in New Issue
Block a user