Skip to content

Commit 0aed867

Browse files
committed
pinctrl: mediatek: drop unused function mtk_pinconf_bias_set_pd
1 parent 35c395c commit 0aed867

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -599,28 +599,6 @@ static int mtk_pinconf_bias_set_pu_pd(struct mtk_pinctrl *hw,
599599
return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PD, pd);
600600
}
601601

602-
static int mtk_pinconf_bias_set_pd(struct mtk_pinctrl *hw,
603-
const struct mtk_pin_desc *desc,
604-
u32 pullup, u32 arg)
605-
{
606-
int err, pd;
607-
608-
if (arg != MTK_DISABLE && arg != MTK_ENABLE)
609-
return -EINVAL;
610-
611-
/* Either this */
612-
if (arg == MTK_DISABLE || pullup)
613-
pd = 0;
614-
else if (!pullup)
615-
pd = 1;
616-
617-
/* Or this (but it's probably a bit too cryptic) */
618-
//pd = !(arg == MTK_DISABLE || pullup);
619-
620-
return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PD, pd);
621-
622-
}
623-
624602
static int mtk_pinconf_bias_set_pullsel_pullen(struct mtk_pinctrl *hw,
625603
const struct mtk_pin_desc *desc,
626604
u32 pullup, u32 arg)

0 commit comments

Comments
 (0)