gpiolib: Refactor gpiolib_dbg_show() with help of for_each_gpio_desc()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 8 Apr 2022 18:18:52 +0000 (21:18 +0300)
committerBartosz Golaszewski <brgl@bgdev.pl>
Sat, 9 Apr 2022 20:38:43 +0000 (22:38 +0200)
commit3de69ae1c407da6cbeca75fd3ee6a40237d899dd
treec881ef300bbe94d858f2f3c72e7f3811fcdc8303
parent66f46e370a9aec05524cdffde4062953e6ba2e08
gpiolib: Refactor gpiolib_dbg_show() with help of for_each_gpio_desc()

Use for_each_gpio_desc() and since we would need to touch the entire
conditionals, do the following:
- rename last occurrence of gdesc to desc
- use short ternary operator ?:
- join two seq_printf() calls into single one
- fix indentation of the seq_printf() parameters

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpiolib.c