Skip to content

Commit

Permalink
fix checkpatch pinctrl-mediatek-add-support-for-MTK_PULL_PD_TYPE
Browse files Browse the repository at this point in the history
WARNING: please, no spaces at the start of a line
\#28: FILE: drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:608:
+    int err, pd;$

WARNING: please, no spaces at the start of a line
\#59: FILE: drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:789:
+    }$

total: 0 errors, 2 warnings, 90 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

0001-pinctrl-mediatek-add-support-for-MTK_PULL_PD_TYPE.patch has style problems, please review.

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.
  • Loading branch information
frank-w committed Oct 2, 2024
1 parent 0c47c5c commit cfb2d6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ static int mtk_pinconf_bias_set_pd(struct mtk_pinctrl *hw,
const struct mtk_pin_desc *desc,
u32 pullup, u32 arg)
{
int err, pd;
int err, pd;

if (arg == MTK_DISABLE)
pd = 0;
Expand Down Expand Up @@ -786,7 +786,7 @@ int mtk_pinconf_bias_set_combo(struct mtk_pinctrl *hw,
err = mtk_pinconf_bias_set_pd(hw, desc, pullup, arg);
if (!err)
return err;
}
}

if (try_all_type & MTK_PULL_PU_PD_TYPE) {
err = mtk_pinconf_bias_set_pu_pd(hw, desc, pullup, arg);
Expand Down

0 comments on commit cfb2d6c

Please sign in to comment.