]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Fix size limit of supply_map
authorHaishan Zhou <zhssmail@gmail.com>
Fri, 30 Jun 2017 03:43:42 +0000 (11:43 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 30 Jun 2017 11:56:42 +0000 (12:56 +0100)
commit31e7e3c4efaa9bb2003c4b192bb515b981a77880
treea955b18c6b9ce14f6446286ea3f96fde5bc11cf3
parent8f46cae9d618b4b948f2a024b094840f4611a1f5
regulator: core: Fix size limit of supply_map

Now the debugfs file supply_map has a size limit PAGE_SIZE and the user
can not see the whole content of regulator_map_list when it is larger
than this limit.

This patch uses seq_file instead to make sure supply_map shows the full
information of regulator_map_list.

Signed-off-by: Haishan Zhou <zhssmail@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c