[PATCH] regulator: giving regulator controlling gpios a non-empty label when used through the devicetree.

2018-03-19 Thread Nicholas Lowell
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 --- drivers/regulator/gpio-regulator.c | 1 +

Re: [PATCH] regulator: giving regulator controlling gpios a non-empty label when used through the devicetree

2018-03-05 Thread Mark Brown
On Fri, Mar 02, 2018 at 11:20:49AM -0500, Nicholas Lowell wrote: > +++ b/drivers/regulator/gpio-regulator.c > @@ -196,6 +196,7 @@ of_get_gpio_regulator_config(struct device *dev, struct > device_node *np, > break; > } > config->gpios[i].gpio = gpio; > + config->gpios[i].label = config->suppl