mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 13:26:47 +00:00
pinctrl: mediatek: Drop mtk_pinconf_bias_set_pd()
This function is unused and causing compile errors, delete it. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Link: https://lore.kernel.org/linux-next/20250106164630.4447cd0d@canb.auug.org.au/ Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
8cd5ba3d3f
commit
0e18b09967
1 changed files with 0 additions and 18 deletions
|
@ -599,24 +599,6 @@ static int mtk_pinconf_bias_set_pu_pd(struct mtk_pinctrl *hw,
|
|||
return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PD, pd);
|
||||
}
|
||||
|
||||
static int mtk_pinconf_bias_set_pd(struct mtk_pinctrl *hw,
|
||||
const struct mtk_pin_desc *desc,
|
||||
u32 pullup, u32 arg)
|
||||
{
|
||||
int err, pd;
|
||||
|
||||
if (arg != MTK_DISABLE && arg != MTK_ENABLE)
|
||||
return -EINVAL;
|
||||
|
||||
if (arg == MTK_DISABLE || pullup)
|
||||
pd = 0;
|
||||
else if (!pullup)
|
||||
pd = 1;
|
||||
|
||||
return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PD, pd);
|
||||
|
||||
}
|
||||
|
||||
static int mtk_pinconf_bias_set_pullsel_pullen(struct mtk_pinctrl *hw,
|
||||
const struct mtk_pin_desc *desc,
|
||||
u32 pullup, u32 arg)
|
||||
|
|
Loading…
Add table
Reference in a new issue