Re: [PATCH] gpiolib: Improve kernel messages

From: Linus Walleij
Date: Tue Apr 28 2020 - 09:49:01 EST


On Fri, Apr 24, 2020 at 4:14 PM Geert Uytterhoeven
<geert+renesas@xxxxxxxxx> wrote:

> Simplify the printing of kernel messages and make the messages more
> accurate by using the most appropriate {dev,chip,gpiod}_*() helpers.
>
> Sample impact:
>
> -gpiochip_setup_dev: registered GPIOs 496 to 511 on device: gpiochip0 (e6050000.gpio)
> +gpio gpiochip0: registered GPIOs 496 to 511 on e6050000.gpio
>
> -no flags found for gpios
> +gpio-953 (?): no flags found for gpios
>
> -GPIO line 355 (PCIE/SATA switch) hogged as output/low
> +gpio-355 (PCIE/SATA switch): hogged as output/low
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>

Patch applied.

Yours,
Linus Walleij