UPSTREAM: regulator: core: Add debugfs to show constraint flags
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Thu, 21 Apr 2016 16:23:21 +0000 (17:23 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 6 Mar 2017 10:28:40 +0000 (18:28 +0800)
commit2c0da078a7970d9c9e5ff45dd0ea0c433f67a3c7
tree40411c89fe1c0f9d6543753baf4bc333b26d3947
parent59ba6e0376c6cd680f9688648c680b8c642f325c
UPSTREAM: regulator: core: Add debugfs to show constraint flags

There are debugfs entries for voltage and current, but not for
the constraint flags. It's useful for debugging to be able to
see what these flags are so this patch adds a new debugfs file.
We can't use debugfs_create_bool for this because the flags are
bitfields, so as this needs a special read callback they have been
collected into a single file that lists all the flags.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 2d80a91b2f2a96f38877bc328dac135d69564911)

Change-Id: Ia3e78960204e34e004340e28b3a7f933aa457371
Signed-off-by: David Wu <david.wu@rock-chips.com>
drivers/regulator/core.c