Commit 4a2e0d18 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Simon Horman

sh-pfc: Let the compiler decide whether to inline functions

The compiler should be smart enough to automatically inline static
functions that are called from a single location.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: default avatarPaul Mundt <lethal@linux-sh.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent c9fa88e2
...@@ -116,7 +116,7 @@ static void sh_pfc_noop_disable(struct pinctrl_dev *pctldev, unsigned func, ...@@ -116,7 +116,7 @@ static void sh_pfc_noop_disable(struct pinctrl_dev *pctldev, unsigned func,
{ {
} }
static inline int sh_pfc_config_function(struct sh_pfc *pfc, unsigned offset) static int sh_pfc_config_function(struct sh_pfc *pfc, unsigned offset)
{ {
if (sh_pfc_config_gpio(pfc, offset, if (sh_pfc_config_gpio(pfc, offset,
PINMUX_TYPE_FUNCTION, PINMUX_TYPE_FUNCTION,
...@@ -328,10 +328,8 @@ static struct pinctrl_desc sh_pfc_pinctrl_desc = { ...@@ -328,10 +328,8 @@ static struct pinctrl_desc sh_pfc_pinctrl_desc = {
.confops = &sh_pfc_pinconf_ops, .confops = &sh_pfc_pinconf_ops,
}; };
static inline void sh_pfc_map_one_gpio(struct sh_pfc *pfc, static void sh_pfc_map_one_gpio(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx,
struct sh_pfc_pinctrl *pmx, struct pinmux_gpio *gpio, unsigned offset)
struct pinmux_gpio *gpio,
unsigned offset)
{ {
struct pinmux_data_reg *dummy; struct pinmux_data_reg *dummy;
unsigned long flags; unsigned long flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment