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)
committerMark Brown <broonie@kernel.org>
Wed, 2 Mar 2016 14:13:05 +0000 (23:13 +0900)
commit354794dacc213da7596cefea4dbcd8c094368807
tree51a080d54afeba7ba26d46fd9b00e4e14beae6a5
parent670666b9e0aff40c65d8061a2f53e79eee238685
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>
drivers/regulator/helpers.c
include/linux/regulator/driver.h