RE: [PATCH libgpiod v2 2/5] bindings: python: doc: update the docstring for gpiod.request_lines()

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

 




> -----Original Message-----
> From: Bartosz Golaszewski <brgl@xxxxxxxx>
> Sent: Sunday, December 22, 2024 2:08 PM
> To: Vincent Fazio <vfazio@xxxxxxxxxxx>; Kent Gibson
> <warthog618@xxxxxxxxx>; Linus Walleij <linus.walleij@xxxxxxxxxx>; Erik
> Schilling <erik.schilling@xxxxxxxxxx>; Phil Howard <phil@xxxxxxxxxxxxx>;
> Viresh Kumar <viresh.kumar@xxxxxxxxxx>
> Cc: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>; linux-
> gpio@xxxxxxxxxxxxxxx
> ---
>  bindings/python/gpiod/__init__.py | 15 ++++++++++++---
>  1 file changed, 12 insertions(+), 3 deletions(-)
> 
> diff --git a/bindings/python/gpiod/__init__.py
> b/bindings/python/gpiod/__init__.py
> index 817c755..854e41f 100644
> --- a/bindings/python/gpiod/__init__.py
> +++ b/bindings/python/gpiod/__init__.py
> @@ -99,9 +99,18 @@ def request_lines(
>      Args:
>        path
>          Path to the GPIO character device file.
> -      *args
> -      **kwargs
> -        See Chip.request_lines() for configuration arguments.
> +      config:
> +        Dictionary mapping offsets or names (or tuples thereof) to
> +        LineSettings. If None is passed as the value of the mapping,
> +        default settings are used.
> +      consumer:
> +        Consumer string to use for this request.
> +      event_buffer_size:
> +        Size of the kernel edge event buffer to configure for this request.
> +      output_values:
> +        Dictionary mapping offsets or names to line.Value. This can be used
> +        to set the desired output values globally while reusing LineSettings
> +        for more lines.

Sorry I missed this.

Reviewed-by: Vincent Fazio <vfazio@xxxxxxxxxxx>




[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