Message ID | 1347373204-17883-3-git-send-email-thomas.petazzoni@free-electrons.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, Sep 11, 2012 at 4:20 PM, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote: > -#if 0 > -struct mvebu_pinctrl_function *mvebu_pinctrl_find_function_by_name( > - struct mvebu_pinctrl *pctl, const char *name) > -{ > - unsigned n; > - for (n = 0; n < pctl->num_functions; n++) { > - if (strcmp(name, pctl->functions[n].name) == 0) > - return &pctl->functions[n]; > - } > - return NULL; > -} > -#endif Grrr how could I miss this...? Acked-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij
diff --git a/drivers/pinctrl/pinctrl-mvebu.c b/drivers/pinctrl/pinctrl-mvebu.c index ed1fc3b..720e547 100644 --- a/drivers/pinctrl/pinctrl-mvebu.c +++ b/drivers/pinctrl/pinctrl-mvebu.c @@ -128,19 +128,6 @@ static struct mvebu_mpp_ctrl_setting *mvebu_pinctrl_find_gpio_setting( return NULL; } -#if 0 -struct mvebu_pinctrl_function *mvebu_pinctrl_find_function_by_name( - struct mvebu_pinctrl *pctl, const char *name) -{ - unsigned n; - for (n = 0; n < pctl->num_functions; n++) { - if (strcmp(name, pctl->functions[n].name) == 0) - return &pctl->functions[n]; - } - return NULL; -} -#endif - /* * Common mpp pin configuration registers on MVEBU are * registers of eight 4-bit values for each mpp setting.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- drivers/pinctrl/pinctrl-mvebu.c | 13 ------------- 1 file changed, 13 deletions(-)