From: Sonic Zhang Date: Thu, 9 Apr 2015 03:13:07 +0000 (+0800) Subject: pinctrl: allow exlusive GPIO/mux pin allocation X-Git-Tag: omap-for-v4.2/fixes-rc1^2~132^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa76a3db7093a527333c380df82a0f158d9b8299;p=pandora-kernel.git pinctrl: allow exlusive GPIO/mux pin allocation Disallow simultaneous use of the the GPIO and peripheral mux functions by setting a flag "strict" in struct pinctrl_desc. The blackfin pinmux and gpio controller doesn't allow user to set up a pin for both GPIO and peripheral function. So, add flag strict in struct pinctrl_desc to check both gpio_owner and mux_owner before approving the pin request. v2-changes: - if strict flag is set, check gpio_owner and mux_onwer in if and else clause v3-changes: - add kerneldoc for this struct - augment Documentation/pinctrl.txt Signed-off-by: Sonic Zhang Signed-off-by: Linus Walleij --- Reading git-diff-tree failed