projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0edf256
)
dmaengine: pl08x: constify pointer to char in filter function
author
Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org>
Thu, 8 Feb 2024 20:27:41 +0000
(21:27 +0100)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 23 Feb 2024 07:14:08 +0000
(12:44 +0530)
The opaque argument chan_id passed to filter function is actually
pointer to const memory, so make that obvious in the filter for code
readability and safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link:
https://lore.kernel.org/r/20240208202742.631307-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/amba-pl08x.c
patch
|
blob
|
history
diff --git
a/drivers/dma/amba-pl08x.c
b/drivers/dma/amba-pl08x.c
index eea8bd33b4b7385d0fd21dad5583588c7de3556f..fbf048f432bf8f16d5b97b88b4c02851367d9924 100644
(file)
--- a/
drivers/dma/amba-pl08x.c
+++ b/
drivers/dma/amba-pl08x.c
@@
-2239,7
+2239,7
@@
static int pl08x_resume(struct dma_chan *chan)
bool pl08x_filter_id(struct dma_chan *chan, void *chan_id)
{
struct pl08x_dma_chan *plchan;
- char *name = chan_id;
+ c
onst c
har *name = chan_id;
/* Reject channels for devices not bound to this driver */
if (chan->device->dev->driver != &pl08x_amba_driver.drv)