]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMark Brown <broonie@kernel.org>
Fri, 22 Apr 2016 09:28:52 +0000 (10:28 +0100)
commitc1c98512ff553ae674d4b9d371d284a65bc4d509
treebc85bdad22397adddb16e177385a8aa1f73245fd
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
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>
drivers/regulator/core.c