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

pinctrl: qcom: spmi-gpio: Reorder debug print

It's reasonable to expect that people turn to the "gpio" debugfs file to
first and foremost learn about the direction and value of a gpio, and
second to that about it's pinconf. So reorder the value so each line
reads:

gpioN: direction value ...

This also makes it consistent with the TLMM pinctrl driver's output in
the same dump.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Bjorn Andersson and committed by
Linus Walleij
202ba5eb 7c6daeaf

+1 -1
+1 -1
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c
··· 675 675 else 676 676 seq_printf(s, " %-4s", 677 677 pad->output_enabled ? "out" : "in"); 678 + seq_printf(s, " %-4s", pad->out_value ? "high" : "low"); 678 679 seq_printf(s, " %-7s", pmic_gpio_functions[function]); 679 680 seq_printf(s, " vin-%d", pad->power_source); 680 681 seq_printf(s, " %-27s", biases[pad->pullup]); 681 682 seq_printf(s, " %-10s", buffer_types[pad->buffer_type]); 682 - seq_printf(s, " %-4s", pad->out_value ? "high" : "low"); 683 683 seq_printf(s, " %-7s", strengths[pad->strength]); 684 684 seq_printf(s, " atest-%d", pad->atest); 685 685 seq_printf(s, " dtest-%d", pad->dtest_buffer);