mmc: sdhci-of-arasan: Modify data type of the clk_phase array
authorManish Narani <manish.narani@xilinx.com>
Tue, 15 Jun 2021 10:43:56 +0000 (16:13 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Aug 2021 08:15:29 +0000 (10:15 +0200)
Modify the data type of the clk_phase array to u32 to make it compatible
with the argument requirement of "of_property_read_variable_u32_array".

Addresses-coverity: ("incompatible_param")
Signed-off-by: Manish Narani <manish.narani@xilinx.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1623753837-21035-7-git-send-email-manish.narani@xilinx.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-arasan.c

index fbcb9b0..ba425b9 100644 (file)
@@ -1018,7 +1018,7 @@ static void arasan_dt_read_clk_phase(struct device *dev,
 {
        struct device_node *np = dev->of_node;
 
-       int clk_phase[2] = {0};
+       u32 clk_phase[2] = {0};
 
        /*
         * Read Tap Delay values from DT, if the DT does not contain the