lkml.org 
[lkml]   [2023]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 63/73] pinctrl: mediatek: moore: drop the wrappers around pinctrl_gpio_direction_input()
    Date
    From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

    pinctrl_gpio_direction_input() now has the same signature as the
    wrappers around it so we can drop them.

    Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
    ---
    drivers/pinctrl/mediatek/pinctrl-moore.c | 7 +------
    1 file changed, 1 insertion(+), 6 deletions(-)

    diff --git a/drivers/pinctrl/mediatek/pinctrl-moore.c b/drivers/pinctrl/mediatek/pinctrl-moore.c
    index c3f33f96f920..c3d59eddd994 100644
    --- a/drivers/pinctrl/mediatek/pinctrl-moore.c
    +++ b/drivers/pinctrl/mediatek/pinctrl-moore.c
    @@ -510,11 +510,6 @@ static void mtk_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value)
    mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DO, !!value);
    }

    -static int mtk_gpio_direction_input(struct gpio_chip *chip, unsigned int gpio)
    -{
    - return pinctrl_gpio_direction_input(chip, gpio);
    -}
    -
    static int mtk_gpio_direction_output(struct gpio_chip *chip, unsigned int gpio,
    int value)
    {
    @@ -569,7 +564,7 @@ static int mtk_build_gpiochip(struct mtk_pinctrl *hw)
    chip->parent = hw->dev;
    chip->request = gpiochip_generic_request;
    chip->free = gpiochip_generic_free;
    - chip->direction_input = mtk_gpio_direction_input;
    + chip->direction_input = pinctrl_gpio_direction_input;
    chip->direction_output = mtk_gpio_direction_output;
    chip->get = mtk_gpio_get;
    chip->set = mtk_gpio_set;
    --
    2.39.2
    \
     
     \ /
      Last update: 2023-10-17 14:10    [W:3.455 / U:0.872 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site