]> Git Repo - J-linux.git/commitdiff
dmaengine: of: constify of_phandle_args in of_dma_find_controller()
authorKrzysztof Kozlowski <[email protected]>
Thu, 8 Feb 2024 20:27:42 +0000 (21:27 +0100)
committerVinod Koul <[email protected]>
Fri, 23 Feb 2024 07:14:08 +0000 (12:44 +0530)
of_dma_find_controller() does not modify passed of_phandle_args so the
argument can be made pointer to const for code safety.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
drivers/dma/of-dma.c

index 775a7f408b9a0a292fc2006cef4a80ef575bdd6a..e588fff9f21d274a2bdc6ea24985c27ab8bdde71 100644 (file)
@@ -29,7 +29,7 @@ static DEFINE_MUTEX(of_dma_lock);
  * to the DMA data stored is retuned. A NULL pointer is returned if no match is
  * found.
  */
-static struct of_dma *of_dma_find_controller(struct of_phandle_args *dma_spec)
+static struct of_dma *of_dma_find_controller(const struct of_phandle_args *dma_spec)
 {
        struct of_dma *ofdma;
 
This page took 0.07705 seconds and 4 git commands to generate.