Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: use consumer->supply_name in debugfs/regulator_summary

Make it easier to identify regulator consumers when consumer device
uses more than one supply.

Before:

regulator ena use open bypass voltage current min max
-----------------------------------------------------------------------------------
regulator-dummy 1 0 2 0 0mV 0mA 0mV 0mV
1-0010 0mV 0mV
1-0010 0mV 0mV

After:

regulator ena use open bypass voltage current min max
-----------------------------------------------------------------------------------
regulator-dummy 1 0 2 0 0mV 0mA 0mV 0mV
1-0010-vccio 0mV 0mV
1-0010-vcc33 0mV 0mV

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Link: https://lore.kernel.org/r/731a4b299c6ae0ee9d8995157600a3477f21a36c.1585959068.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Michał Mirosław and committed by
Mark Brown
6b576eb0 d2c2c218

+1
+1
drivers/regulator/core.c
··· 5496 5496 seq_printf(s, "%*s%-*s ", 5497 5497 (level + 1) * 3 + 1, "", 5498 5498 30 - (level + 1) * 3, 5499 + consumer->supply_name ? consumer->supply_name : 5499 5500 consumer->dev ? dev_name(consumer->dev) : "deviceless"); 5500 5501 5501 5502 switch (rdev->desc->type) {