Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1664946 > unrolled thread
| Started by | Michał Mirosław <mirq-linux@rere.qmqm.pl> |
|---|---|
| First post | 2017-06-13 17:00 +0200 |
| Last post | 2017-06-13 17:00 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/2] regulator: use consumer->supply_name in debugfs/regulator_summary Michał Mirosław <mirq-linux@rere.qmqm.pl> - 2017-06-13 17:00 +0200
| From | Michał Mirosław <mirq-linux@rere.qmqm.pl> |
|---|---|
| Date | 2017-06-13 17:00 +0200 |
| Subject | [PATCH 2/2] regulator: use consumer->supply_name in debugfs/regulator_summary |
| Message-ID | <tRVst-Oa-3@gated-at.bofh.it> |
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>
---
v2:
- extend commit message
drivers/regulator/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index ba4d121ae07fc..a9bfabd132cff 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -4419,6 +4419,7 @@ static void regulator_summary_show_subtree(struct seq_file *s,
seq_printf(s, "%*s%-*s ",
(level + 1) * 3 + 1, "",
30 - (level + 1) * 3,
+ consumer->supply_name ? consumer->supply_name :
consumer->dev ? dev_name(consumer->dev) : "deviceless");
switch (rdev->desc->type) {
--
2.11.0
Back to top | Article view | linux.kernel
csiph-web