Skip to content

Commit 924fc22

Browse files
Bartosz Golaszewskiandersson
authored andcommitted
firmware: qcom: qseecom: remove unused functions
qseecom_scm_dev(), qseecom_dma_alloc() and qseecom_dma_free() are no longer used following the conversion to using tzmem. Remove them. Fixes: 6612103 ("firmware: qcom: qseecom: convert to using the TZ allocator") Reviewed-by: Andrew Halaney <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 1c753d0 commit 924fc22

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

include/linux/firmware/qcom/qcom_qseecom.h

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -25,51 +25,6 @@ struct qseecom_client {
2525
u32 app_id;
2626
};
2727

28-
/**
29-
* qseecom_scm_dev() - Get the SCM device associated with the QSEECOM client.
30-
* @client: The QSEECOM client device.
31-
*
32-
* Returns the SCM device under which the provided QSEECOM client device
33-
* operates. This function is intended to be used for DMA allocations.
34-
*/
35-
static inline struct device *qseecom_scm_dev(struct qseecom_client *client)
36-
{
37-
return client->aux_dev.dev.parent->parent;
38-
}
39-
40-
/**
41-
* qseecom_dma_alloc() - Allocate DMA memory for a QSEECOM client.
42-
* @client: The QSEECOM client to allocate the memory for.
43-
* @size: The number of bytes to allocate.
44-
* @dma_handle: Pointer to where the DMA address should be stored.
45-
* @gfp: Allocation flags.
46-
*
47-
* Wrapper function for dma_alloc_coherent(), allocating DMA memory usable for
48-
* TZ/QSEECOM communication. Refer to dma_alloc_coherent() for details.
49-
*/
50-
static inline void *qseecom_dma_alloc(struct qseecom_client *client, size_t size,
51-
dma_addr_t *dma_handle, gfp_t gfp)
52-
{
53-
return dma_alloc_coherent(qseecom_scm_dev(client), size, dma_handle, gfp);
54-
}
55-
56-
/**
57-
* dma_free_coherent() - Free QSEECOM DMA memory.
58-
* @client: The QSEECOM client for which the memory has been allocated.
59-
* @size: The number of bytes allocated.
60-
* @cpu_addr: Virtual memory address to free.
61-
* @dma_handle: DMA memory address to free.
62-
*
63-
* Wrapper function for dma_free_coherent(), freeing memory previously
64-
* allocated with qseecom_dma_alloc(). Refer to dma_free_coherent() for
65-
* details.
66-
*/
67-
static inline void qseecom_dma_free(struct qseecom_client *client, size_t size,
68-
void *cpu_addr, dma_addr_t dma_handle)
69-
{
70-
return dma_free_coherent(qseecom_scm_dev(client), size, cpu_addr, dma_handle);
71-
}
72-
7328
/**
7429
* qcom_qseecom_app_send() - Send to and receive data from a given QSEE app.
7530
* @client: The QSEECOM client associated with the target app.

0 commit comments

Comments
 (0)