gpio: tps65910: Add sleep control support
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 1 Feb 2012 06:39:04 +0000 (12:09 +0530)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 6 Feb 2012 06:08:29 +0000 (23:08 -0700)
commit9467d298e92455e6fd411d7ef1f367ced940587c
treeb739a190c7aba72531e9592cbc9937b1a159db6c
parentb43ab901d671e3e3cad425ea5e9a3c74e266dcdd
gpio: tps65910: Add sleep control support

The device tps65910/tps65911 supports the sleep
functionality in some of gpios. If gpio is configured
in output mode and sleep is enabled then during device
sleep state, the output of gpio becomes LOW regardless
of non-sleep output value.
Such gpio can be used to control regulator switch such
that output of regulator is off in device sleep state.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tps65910.c
include/linux/mfd/tps65910.h