]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: pinctrl sleep and idle states in the core
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 5 Jun 2013 13:30:33 +0000 (15:30 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 16 Jun 2013 09:56:52 +0000 (11:56 +0200)
commit0218649c0db6f8054975e28766ad384d8bf0f71a
tree65771454d8f060007a489927cf9f70847503f4ce
parent3d19acc8a4e298341e573cb8489edd77b5042aad
drivers: pinctrl sleep and idle states in the core

If a device have sleep and idle states in addition to the
default state, look up these in the core and stash them in
the pinctrl state container.

Add accessor functions for pinctrl consumers to put the pins
into "default", "sleep" and "idle" states passing nothing but
the struct device * affected.

Solution suggested by Kevin Hilman, Mark Brown and Dmitry
Torokhov in response to a patch series from Hebbar
Gururaja.

Cc: Hebbar Gururaja <gururaja.hebbar@ti.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/base/pinctrl.c
drivers/pinctrl/core.c
include/linux/pinctrl/consumer.h
include/linux/pinctrl/devinfo.h