pinctrl: imx: use radix trees for groups and functions
authorGary Bisson <gary.bisson@boundarydevices.com>
Fri, 2 Dec 2016 16:35:19 +0000 (17:35 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 30 Dec 2016 13:26:01 +0000 (14:26 +0100)
commita51c158bf0f7cab3bd593586801a1a8b51c7c741
tree192ea35a6fb4c805fd726675d849926fcb808626
parentb28742be4709929ac6f25ae1f7256e61ed0817a0
pinctrl: imx: use radix trees for groups and functions

This change is inspired from the pinctrl-single architecture.

The problem with current implementation is that it isn't possible
to add/remove functions and/or groups dynamically. The radix tree
offers an easy way to do so. The intent is to offer a follow-up
patch later that will enable the use of pinctrl nodes in dt-overlays.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx.c
drivers/pinctrl/freescale/pinctrl-imx.h