summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-msm.h
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@sonymobile.com>2014-03-31 14:49:55 -0700
committerLinus Walleij <linus.walleij@linaro.org>2014-04-22 08:41:34 +0200
commit3c25381f9b3375c326f5ead194cb91b5ac181f08 (patch)
treeb13b9ecf342307ba0666a4f47569660ab09f7648 /drivers/pinctrl/pinctrl-msm.h
parent130cbe3082a1d69e7009b8c1dabb44babedd9269 (diff)
downloadtalos-obmc-linux-3c25381f9b3375c326f5ead194cb91b5ac181f08.tar.gz
talos-obmc-linux-3c25381f9b3375c326f5ead194cb91b5ac181f08.zip
pinctrl: msm: Make number of functions variable
The various pins may have different number of functions defined, so make this number definable per pin instead of just increasing it to the largest one for all of the platforms. Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-msm.h')
-rw-r--r--drivers/pinctrl/pinctrl-msm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-msm.h b/drivers/pinctrl/pinctrl-msm.h
index 6e26f1b676d7..7b2a227a590a 100644
--- a/drivers/pinctrl/pinctrl-msm.h
+++ b/drivers/pinctrl/pinctrl-msm.h
@@ -65,7 +65,8 @@ struct msm_pingroup {
const unsigned *pins;
unsigned npins;
- unsigned funcs[8];
+ unsigned *funcs;
+ unsigned nfuncs;
s16 ctl_reg;
s16 io_reg;
OpenPOWER on IntegriCloud