From: Krzysztof Kozlowski Date: Thu, 8 Feb 2024 20:27:41 +0000 (+0100) Subject: dmaengine: pl08x: constify pointer to char in filter function X-Git-Tag: v6.9-rc1~96^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16374aba824971d73916f005e79207370c9c31dd;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20240208202742.631307-1-krzysztof.kozlowski@linaro.org Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index eea8bd33b4b73..fbf048f432bf8 100644 --- 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; + const char *name = chan_id; /* Reject channels for devices not bound to this driver */ if (chan->device->dev->driver != &pl08x_amba_driver.drv)