summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-st.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-06-13 17:18:34 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-06-15 08:37:41 +0200
commit56411f3c053efc29f761a4523f2d42c79b03a575 (patch)
tree8965b09e0886bbd400bc5e68a747987f16ff7b8b /drivers/pinctrl/pinctrl-st.c
parent648eb7a1bc3ceadbb2450272bce5297b7aa3d37e (diff)
downloadlinux-56411f3c053efc29f761a4523f2d42c79b03a575.tar.gz
linux-56411f3c053efc29f761a4523f2d42c79b03a575.tar.bz2
linux-56411f3c053efc29f761a4523f2d42c79b03a575.zip
pinctrl: fix incorrect inline keyword in multiple drivers
When building with 'make W=1', we get harmless warnings about five drivers in drivers/pinctrl, which all contain a copy of the same line: drivers/pinctrl/freescale/pinctrl-imx1-core.c:160:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] This replaces the somewhat nonstandard 'static const inline' with 'static inline const', which has the same meaning but does not cause this warning. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-st.c')
-rw-r--r--drivers/pinctrl/pinctrl-st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c
index d0ba968af5bb..0de1c67dfb94 100644
--- a/drivers/pinctrl/pinctrl-st.c
+++ b/drivers/pinctrl/pinctrl-st.c
@@ -844,7 +844,7 @@ static int st_pctl_get_group_pins(struct pinctrl_dev *pctldev,
return 0;
}
-static const inline struct st_pctl_group *st_pctl_find_group_by_name(
+static inline const struct st_pctl_group *st_pctl_find_group_by_name(
const struct st_pinctrl *info, const char *name)
{
int i;