]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
pinctrl: mediatek: clean up indentation issues, add missing tab
authorColin Ian King <colin.king@canonical.com>
Wed, 31 Oct 2018 18:42:41 +0000 (18:42 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 Nov 2018 08:54:54 +0000 (09:54 +0100)
Trivial fix to clean up indentation issues, add one level of
indentation on two if statements.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-moore.c
drivers/pinctrl/mediatek/pinctrl-paris.c

index 3133ec0f2e67ecb2e653f059158544c41f00ee33..aa1068d2867f7a7352d3490eb4a883f4fbab7de4 100644 (file)
@@ -310,8 +310,8 @@ static int mtk_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin,
                case PIN_CONFIG_DRIVE_STRENGTH:
                        if (hw->soc->drive_set) {
                                err = hw->soc->drive_set(hw, desc, arg);
-                       if (err)
-                               return err;
+                               if (err)
+                                       return err;
                        } else {
                                err = -ENOTSUPP;
                        }
index d2179028f1347e4044db20fa80bf06d8dd2b5eca..50e68b1e906545b80112b88ce79d46dd4236fe09 100644 (file)
@@ -282,8 +282,8 @@ static int mtk_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin,
        case PIN_CONFIG_DRIVE_STRENGTH:
                if (hw->soc->drive_set) {
                        err = hw->soc->drive_set(hw, desc, arg);
-               if (err)
-                       return err;
+                       if (err)
+                               return err;
                } else {
                        return -ENOTSUPP;
                }