Skip to content

Commit 0e18b09

Browse files
author
Linus Walleij
committed
pinctrl: mediatek: Drop mtk_pinconf_bias_set_pd()
This function is unused and causing compile errors, delete it. Reported-by: Stephen Rothwell <[email protected]> Link: https://lore.kernel.org/linux-next/[email protected]/ Signed-off-by: Linus Walleij <[email protected]>
1 parent 8cd5ba3 commit 0e18b09

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -599,24 +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-
if (arg == MTK_DISABLE || pullup)
612-
pd = 0;
613-
else if (!pullup)
614-
pd = 1;
615-
616-
return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PD, pd);
617-
618-
}
619-
620602
static int mtk_pinconf_bias_set_pullsel_pullen(struct mtk_pinctrl *hw,
621603
const struct mtk_pin_desc *desc,
622604
u32 pullup, u32 arg)

0 commit comments

Comments
 (0)