From: Linus Walleij Date: Wed, 8 Jan 2025 21:52:44 +0000 (+0100) Subject: pinctrl: mediatek: Drop mtk_pinconf_bias_set_pd() X-Git-Tag: v6.14-rc1~115^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e18b099672160698dfbd7c3c82e03e011c907e6;p=thirdparty%2Flinux.git pinctrl: mediatek: Drop mtk_pinconf_bias_set_pd() This function is unused and causing compile errors, delete it. Reported-by: Stephen Rothwell Link: https://lore.kernel.org/linux-next/20250106164630.4447cd0d@canb.auug.org.au/ Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c index 7b704cc55c9fd..00e95682b9f82 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c @@ -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)