regulator: giving regulator controlling gpios a non-empty label when used through...
authorNicholas Lowell <nlowell@lexmark.com>
Mon, 19 Mar 2018 13:23:14 +0000 (09:23 -0400)
committerMark Brown <broonie@kernel.org>
Tue, 20 Mar 2018 01:19:32 +0000 (09:19 +0800)
commit37ad490bab09b7c218e37b570069cf188f2616e7
tree9506ed39ec51d7dafe4b8ac0ccbb927f010bd0b6
parented8cffda27dea6fd3dafb3ee881c5a786edac9ca
regulator: giving regulator controlling gpios a non-empty label when used through the devicetree.

When the label is empty, it causes missing information and limits diagnostics
for instances such as 'cat /sys/kernel/debug/gpio'

Setting the label to the regulator supply_name will point to the device
using the gpio(s).

Signed-off-by: Nicholas Lowell <nlowell@lexmark.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/gpio-regulator.c