pinctrl: enhance pinctrl_get() to handle multiple functions
authorStephen Warren <swarren@nvidia.com>
Fri, 2 Mar 2012 01:48:31 +0000 (18:48 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 2 Mar 2012 15:12:03 +0000 (16:12 +0100)
commitd4e3198736d9d64e4ba4d2b46ab75cbcf5d0a4e0
treee5e06f5c3ec83949e10f5407a1020ff5e07a7934
parent3eedb4372354a70ce63c9f4ec294d2eba0d79d17
pinctrl: enhance pinctrl_get() to handle multiple functions

At present, pinctrl_get() assumes that all matching mapping table entries
have the same "function" value, albeit potentially applied to different
pins/groups.

This change removes this restriction; pinctrl_get() can now handle a set
of mapping tables where different functions are applied to the various
pins/groups.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.h
drivers/pinctrl/pinmux.c
drivers/pinctrl/pinmux.h