Skip to content

Commit 16374ab

Browse files
krzkvinodkoul
authored andcommitted
dmaengine: pl08x: constify pointer to char in filter function
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>
1 parent 0edf256 commit 16374ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/amba-pl08x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2239,7 +2239,7 @@ static int pl08x_resume(struct dma_chan *chan)
22392239
bool pl08x_filter_id(struct dma_chan *chan, void *chan_id)
22402240
{
22412241
struct pl08x_dma_chan *plchan;
2242-
char *name = chan_id;
2242+
const char *name = chan_id;
22432243

22442244
/* Reject channels for devices not bound to this driver */
22452245
if (chan->device->dev->driver != &pl08x_amba_driver.drv)

0 commit comments

Comments
 (0)