pinctrl: add pinctrl_provide_dummies interface for platforms to use
authorDong Aisheng <dong.aisheng@linaro.org>
Thu, 26 Apr 2012 08:15:50 +0000 (16:15 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 26 Apr 2012 21:31:04 +0000 (23:31 +0200)
commit5b3aa5f7c6287b1a0698950a91e94546888e553b
treeba9835476e92287de257f5bcbf121f570c66e8b8
parentad6e1107baa2e7fda55c2020c25127eab9c0122b
pinctrl: add pinctrl_provide_dummies interface for platforms to use

Add a interface pinctrl_provide_dummies for platform to indicate
whether it needs use pinctrl dummy state.

ChangeLog v3->v4:
* remove dummy gpio support in pinctrl subsystem.
  Let gpio driver decide whether it wants to use pinctrl gpio mux
  function.
ChangeLog v2->v3:
* Also changed the missed pinctrl gpio APIs in v1.
ChangeLog v1->v2:
* Based on sascha's suggestion, drop using kconfig since it will hide
  pinctrl errors on all other boards.
  See: https://lkml.org/lkml/2012/4/18/282
  It seemed both Linus and Stephen agreed with this way, so i'm ok
  with it too.
* Add dummy gpio support.
  pinctrl gpio in the same situation as state.
* Patch name changed.
  Original is pinctrl: handle dummy state in core.
* Split removing old dt dummy interface into a separate patch

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c
include/linux/pinctrl/machine.h