diff options
author | Irina Tirdea <irina.tirdea@intel.com> | 2016-03-31 07:44:42 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-04-01 09:06:36 -0400 |
commit | d32f7fd3bbc32732b094d938b95169521503a9fb (patch) | |
tree | e56a11bd147937e40e27db57a47276557be1a001 /drivers/pinctrl/stm32 | |
parent | 20b3d2a79f0f9ff1ac189f43df7598d0e968210a (diff) |
pinctrl: Rename pinctrl_utils_dt_free_map to pinctrl_utils_free_map
Rename pinctrl_utils_dt_free_map to pinctrl_utils_free_map, since
it does not depend on device tree despite the current name. This
will enforce a consistent naming in pinctr-utils.c and will make
it clear it can be called from outside device tree (e.g. from
ACPI handling code).
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/stm32')
-rw-r--r-- | drivers/pinctrl/stm32/pinctrl-stm32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c index 8deb566ed4cd..b97b7c01f942 100644 --- a/drivers/pinctrl/stm32/pinctrl-stm32.c +++ b/drivers/pinctrl/stm32/pinctrl-stm32.c | |||
@@ -358,7 +358,7 @@ static int stm32_pctrl_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
358 | ret = stm32_pctrl_dt_subnode_to_map(pctldev, np, map, | 358 | ret = stm32_pctrl_dt_subnode_to_map(pctldev, np, map, |
359 | &reserved_maps, num_maps); | 359 | &reserved_maps, num_maps); |
360 | if (ret < 0) { | 360 | if (ret < 0) { |
361 | pinctrl_utils_dt_free_map(pctldev, *map, *num_maps); | 361 | pinctrl_utils_free_map(pctldev, *map, *num_maps); |
362 | return ret; | 362 | return ret; |
363 | } | 363 | } |
364 | } | 364 | } |
@@ -396,7 +396,7 @@ static int stm32_pctrl_get_group_pins(struct pinctrl_dev *pctldev, | |||
396 | 396 | ||
397 | static const struct pinctrl_ops stm32_pctrl_ops = { | 397 | static const struct pinctrl_ops stm32_pctrl_ops = { |
398 | .dt_node_to_map = stm32_pctrl_dt_node_to_map, | 398 | .dt_node_to_map = stm32_pctrl_dt_node_to_map, |
399 | .dt_free_map = pinctrl_utils_dt_free_map, | 399 | .dt_free_map = pinctrl_utils_free_map, |
400 | .get_groups_count = stm32_pctrl_get_groups_count, | 400 | .get_groups_count = stm32_pctrl_get_groups_count, |
401 | .get_group_name = stm32_pctrl_get_group_name, | 401 | .get_group_name = stm32_pctrl_get_group_name, |
402 | .get_group_pins = stm32_pctrl_get_group_pins, | 402 | .get_group_pins = stm32_pctrl_get_group_pins, |