UPSTREAM: regulator: helper: Add helper to configure active-discharge using regmap
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 2 Mar 2016 10:54:47 +0000 (16:24 +0530)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 6 Mar 2017 10:28:40 +0000 (18:28 +0800)
commitab74a74caca1e9004459bd8b411b44d4e267dc14
treea88da6acf0c89b5c75c8bce10dc28f53b7cb2325
parent6e915479922370a4413472fc38cf60881ee83c85
UPSTREAM: regulator: helper: Add helper to configure active-discharge using regmap

Add helper function to set the state of active-discharge of
regulator using regmap. The HW regulator driver can directly
use this by providing the necessary information in the regulator
descriptor.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 354794dacc213da7596cefea4dbcd8c094368807)

Change-Id: I195290ac6ddfbadc7876a28b6df5149530954484
Signed-off-by: David Wu <david.wu@rock-chips.com>
drivers/regulator/helpers.c
include/linux/regulator/driver.h