pinctrl: pinconf: Add generic helper function for freeing mappings
The pinconf-generic.h file exposes functions for creating generic mappings but it does not expose a function for freeing the mappings. Add a function for freeing generic mappings. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:

committato da
Linus Walleij

parent
1a695a905c
commit
8dfebf57bd
@@ -391,4 +391,12 @@ exit:
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pinconf_generic_dt_node_to_map);
|
||||
|
||||
void pinconf_generic_dt_free_map(struct pinctrl_dev *pctldev,
|
||||
struct pinctrl_map *map,
|
||||
unsigned num_maps)
|
||||
{
|
||||
pinctrl_utils_free_map(pctldev, map, num_maps);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pinconf_generic_dt_free_map);
|
||||
|
||||
#endif
|
||||
|
Fai riferimento in un nuovo problema
Block a user