]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
pinctrl: qcom: lpass-lpi: use consistent name for "group" variable
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 9 Mar 2023 15:49:47 +0000 (16:49 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 13 Mar 2023 10:24:58 +0000 (11:24 +0100)
The set_mux callback in SoC TLMM driver (pinctrl-msm.c) uses "group",
not "group_num" for the number of the pin group.  Other places of
lpass-lpi also use "group", so let's be consistent for code readability.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230309154949.658380-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-lpass-lpi.c

index 27fc8b671954419aee2e495abcb78ba6064cd71d..bd32556d75a5996927f0d4121967633742a58b8f 100644 (file)
@@ -84,10 +84,10 @@ static int lpi_gpio_get_function_groups(struct pinctrl_dev *pctldev,
 }
 
 static int lpi_gpio_set_mux(struct pinctrl_dev *pctldev, unsigned int function,
-                           unsigned int group_num)
+                           unsigned int group)
 {
        struct lpi_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev);
-       const struct lpi_pingroup *g = &pctrl->data->groups[group_num];
+       const struct lpi_pingroup *g = &pctrl->data->groups[group];
        u32 val;
        int i, pin = g->pin;