linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [libgpiod][PATCH 0/9] bindings: python: improve line requests and reconfiguration
@ 2025-10-09 13:05 Vincent Fazio
  2025-10-09 13:05 ` [libgpiod][PATCH 1/9] bindings: python: make config iteration consistent Vincent Fazio
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Vincent Fazio @ 2025-10-09 13:05 UTC (permalink / raw)
  To: linux-gpio; +Cc: vfazio, Vincent Fazio

This series makes a number of minor improvements to consistency, speed,
and code clarity for line requests and reconfiguration.

Patch 1 makes iterating through a configuration object consistent across
line requests and reconfiguration and helps condense code, making it a
bit more readable.

Patch 2 removes an unused attribute from LineRequest.

Patches 3-5 are minor cleanups to simplify and speed up line requests.

Patch 6 makes the behavior of reconfiguring an unrequested line name
consistent with that of an unrequested offset.

Patches 7-8 make lines requested by offset reconfigurable via line name
making them consistent with lines requested by name being reconfigurable
via offset.

Patch 9 updates line reconfiguration to warn the caller if a line was
included that was not part of the original line request.

Vincent Fazio (9):
  bindings: python: make config iteration consistent
  bindings: python: remove unused attribute from LineRequest
  bindings: python: chip: track requested lines when enumerating
  bindings: python: chip: simplify duplicate checking
  bindings: python: chip: check mapped_output_values membership once
  bindings: python: line_request: ignore invalid line names in
    reconfigure_lines
  bindings: python: ext: add ability to query line name
  bindings: python: chip: map names for lines requested by offset
  bindings: python: line_request: warn on unknown lines when
    reconfiguring

 bindings/python/gpiod/_ext.pyi              |  1 +
 bindings/python/gpiod/_internal.py          | 22 +++++-
 bindings/python/gpiod/chip.py               | 84 ++++++++-------------
 bindings/python/gpiod/ext/chip.c            | 31 ++++++++
 bindings/python/gpiod/line_request.py       | 36 +++++----
 bindings/python/tests/tests_line_request.py | 63 ++++++++++++++--
 6 files changed, 163 insertions(+), 74 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-10-13 15:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-09 13:05 [libgpiod][PATCH 0/9] bindings: python: improve line requests and reconfiguration Vincent Fazio
2025-10-09 13:05 ` [libgpiod][PATCH 1/9] bindings: python: make config iteration consistent Vincent Fazio
2025-10-09 13:05 ` [libgpiod][PATCH 2/9] bindings: python: remove unused attribute from LineRequest Vincent Fazio
2025-10-09 13:05 ` [libgpiod][PATCH 3/9] bindings: python: chip: track requested lines when enumerating Vincent Fazio
2025-10-09 13:05 ` [libgpiod][PATCH 4/9] bindings: python: chip: simplify duplicate checking Vincent Fazio
2025-10-09 13:05 ` [libgpiod][PATCH 5/9] bindings: python: chip: check mapped_output_values membership once Vincent Fazio
2025-10-09 13:05 ` [libgpiod][PATCH 6/9] bindings: python: line_request: ignore invalid line names in reconfigure_lines Vincent Fazio
2025-10-09 13:05 ` [libgpiod][PATCH 7/9] bindings: python: ext: add ability to query line name Vincent Fazio
2025-10-09 13:05 ` [libgpiod][PATCH 8/9] bindings: python: chip: map names for lines requested by offset Vincent Fazio
2025-10-09 13:05 ` [libgpiod][PATCH 9/9] bindings: python: line_request: warn on unknown lines when reconfiguring Vincent Fazio
2025-10-13 15:31 ` [libgpiod][PATCH 0/9] bindings: python: improve line requests and reconfiguration Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).