pinctrl-msm: Make number of functions variable