pinctrl: imx: use generic pinctrl helpers for managing groups
authorGary Bisson <gary.bisson@boundarydevices.com>
Mon, 2 Jan 2017 18:20:21 +0000 (19:20 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Jan 2017 08:26:20 +0000 (09:26 +0100)
commite566fc11ea76ec10a42fc92c5561ace4479770dd
tree5af613dce04fdc8537a686c808aab9f8c29587dd
parent824e4d954dfbf7ccb22340d4b56db64f9378d846
pinctrl: imx: use generic pinctrl helpers for managing groups

Now using group_desc structure instead of imx_pin_group.

Also leveraging generic functions to retrieve groups count/name/pins.

The imx_free_pingroups function can be removed since it is now handled by
the core driver during unregister.

Finally the device tree parsing is moved after the pinctrl driver registration
since this latter initializes the radix trees.

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