pinctrl: use ngpios propety from DT
authorPramod Kumar <pramodku@broadcom.com>
Thu, 19 Nov 2015 03:52:15 +0000 (09:22 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 30 Nov 2015 08:36:14 +0000 (09:36 +0100)
commite1aaaf3ff311ce03401965a38b33aceac4e51951
treedd61720f4c7f3789dc78498349b76024af29fd0b
parent2652df631cbe9bd4bb0f3c9dcc284e0f099dbbf1
pinctrl: use ngpios propety from DT

Since identical hardware is used in several instances and every
instance will have different in-use pins. Hence extracting this
number from DT via "ngpios" property.

Signed-off-by: Pramod Kumar <pramodku@broadcom.com>
Reviewed-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c