pinctrl: mvebu: Missing a blank line after declarations.
Missing a blank line after declarations. Signed-off-by: Xin Gao <gaoxin@cdjrlc.com> Link: https://lore.kernel.org/r/20220719182647.9038-1-gaoxin@cdjrlc.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Родитель
f1a5013f91
Коммит
c3e4fa4b4e
|
@ -96,10 +96,12 @@ static struct mvebu_pinctrl_group *mvebu_pinctrl_find_group_by_name(
|
|||
struct mvebu_pinctrl *pctl, const char *name)
|
||||
{
|
||||
unsigned n;
|
||||
|
||||
for (n = 0; n < pctl->num_groups; n++) {
|
||||
if (strcmp(name, pctl->groups[n].name) == 0)
|
||||
return &pctl->groups[n];
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -108,6 +110,7 @@ static struct mvebu_mpp_ctrl_setting *mvebu_pinctrl_find_setting_by_val(
|
|||
unsigned long config)
|
||||
{
|
||||
unsigned n;
|
||||
|
||||
for (n = 0; n < grp->num_settings; n++) {
|
||||
if (config == grp->settings[n].val) {
|
||||
if (!pctl->variant || (pctl->variant &
|
||||
|
@ -115,6 +118,7 @@ static struct mvebu_mpp_ctrl_setting *mvebu_pinctrl_find_setting_by_val(
|
|||
return &grp->settings[n];
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -123,6 +127,7 @@ static struct mvebu_mpp_ctrl_setting *mvebu_pinctrl_find_setting_by_name(
|
|||
const char *name)
|
||||
{
|
||||
unsigned n;
|
||||
|
||||
for (n = 0; n < grp->num_settings; n++) {
|
||||
if (strcmp(name, grp->settings[n].name) == 0) {
|
||||
if (!pctl->variant || (pctl->variant &
|
||||
|
@ -130,6 +135,7 @@ static struct mvebu_mpp_ctrl_setting *mvebu_pinctrl_find_setting_by_name(
|
|||
return &grp->settings[n];
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -137,6 +143,7 @@ static struct mvebu_mpp_ctrl_setting *mvebu_pinctrl_find_gpio_setting(
|
|||
struct mvebu_pinctrl *pctl, struct mvebu_pinctrl_group *grp)
|
||||
{
|
||||
unsigned n;
|
||||
|
||||
for (n = 0; n < grp->num_settings; n++) {
|
||||
if (grp->settings[n].flags &
|
||||
(MVEBU_SETTING_GPO | MVEBU_SETTING_GPI)) {
|
||||
|
@ -145,6 +152,7 @@ static struct mvebu_mpp_ctrl_setting *mvebu_pinctrl_find_gpio_setting(
|
|||
return &grp->settings[n];
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -152,10 +160,12 @@ static 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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче