Re: [PATCH] tools/gpio: add bias flags to lsgpio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



czw., 30 kwi 2020 o 02:10 Kent Gibson <warthog618@xxxxxxxxx> napisał(a):
>
> Add display of the bias flags.
>
> Signed-off-by: Kent Gibson <warthog618@xxxxxxxxx>
> ---
>  tools/gpio/lsgpio.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>
> diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c
> index e1430f504c13..8a71ad36f83b 100644
> --- a/tools/gpio/lsgpio.c
> +++ b/tools/gpio/lsgpio.c
> @@ -49,6 +49,18 @@ struct gpio_flag flagnames[] = {
>                 .name = "open-source",
>                 .mask = GPIOLINE_FLAG_OPEN_SOURCE,
>         },
> +       {
> +               .name = "pull-up",
> +               .mask = GPIOLINE_FLAG_BIAS_PULL_UP,
> +       },
> +       {
> +               .name = "pull-down",
> +               .mask = GPIOLINE_FLAG_BIAS_PULL_DOWN,
> +       },
> +       {
> +               .name = "bias-disabled",
> +               .mask = GPIOLINE_FLAG_BIAS_DISABLE,
> +       },
>  };
>
>  void print_flags(unsigned long flags)
> --
> 2.26.2
>

Patch applied, thanks!

Bart




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux