linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [libgpiod][PATCH 0/4] python examples and comment corrections
@ 2023-06-24  5:20 Kent Gibson
  2023-06-24  5:20 ` [libgpiod][PATCH 1/4] bindings: python: examples: replace tools examples with use case examples Kent Gibson
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Kent Gibson @ 2023-06-24  5:20 UTC (permalink / raw)
  To: linux-gpio, brgl; +Cc: Kent Gibson

The first patch is the updated 6/8 patch from my recent series.
The updates are as per the review comments, except for renaming gpio_chips()
to generate_gpio_chips(), rather than get_gpio_chips(), to indicate the paths
are being generated not returned as a list.
Changes:
  - rename gpio_chips()
  - shorten reconfigure_input_to_output file comment
  - use format style prints

The other patches are updates to the file comments to make them consistent
with the updated python and to fix some cut-and-paste errors I noticed
along the way.

Cheers,
Kent.

Kent Gibson (4):
  bindings: python: examples: replace tools examples with use case
    examples
  core: examples: fix file comments
  cxx: examples: file comment consistency
  rust: examples: file comment consistency

 .../examples/reconfigure_input_to_output.cpp  |  4 +-
 bindings/python/examples/Makefile.am          | 18 +++----
 bindings/python/examples/find_line_by_name.py | 37 +++++++++++++++
 bindings/python/examples/get_chip_info.py     | 20 ++++++++
 bindings/python/examples/get_line_info.py     | 29 ++++++++++++
 .../examples/get_multiple_line_values.py      | 29 ++++++++++++
 bindings/python/examples/gpiodetect.py        | 15 ------
 bindings/python/examples/gpiofind.py          | 20 --------
 bindings/python/examples/gpioget.py           | 29 ------------
 bindings/python/examples/gpioinfo.py          | 28 -----------
 bindings/python/examples/gpiomon.py           | 26 ----------
 bindings/python/examples/gpionotify.py        | 21 ---------
 bindings/python/examples/gpioset.py           | 36 --------------
 bindings/python/examples/helpers.py           | 15 ------
 .../examples/reconfigure_input_to_output.py   | 39 +++++++++++++++
 .../examples/toggle_multiple_line_values.py   | 47 +++++++++++++++++++
 bindings/python/examples/watch_line_info.py   | 23 +++++++++
 bindings/python/examples/watch_line_rising.py | 31 ++++++++++++
 .../examples/watch_multiple_line_values.py    | 42 +++++++++++++++++
 .../examples/reconfigure_input_to_output.rs   |  2 +-
 examples/async_watch_line_value.c             |  2 +-
 examples/get_multiple_line_values.c           |  2 +-
 examples/reconfigure_input_to_output.c        |  5 +-
 examples/watch_multiple_line_values.c         |  2 +-
 24 files changed, 317 insertions(+), 205 deletions(-)
 create mode 100755 bindings/python/examples/find_line_by_name.py
 create mode 100755 bindings/python/examples/get_chip_info.py
 create mode 100755 bindings/python/examples/get_line_info.py
 create mode 100755 bindings/python/examples/get_multiple_line_values.py
 delete mode 100755 bindings/python/examples/gpiodetect.py
 delete mode 100755 bindings/python/examples/gpiofind.py
 delete mode 100755 bindings/python/examples/gpioget.py
 delete mode 100755 bindings/python/examples/gpioinfo.py
 delete mode 100755 bindings/python/examples/gpiomon.py
 delete mode 100755 bindings/python/examples/gpionotify.py
 delete mode 100755 bindings/python/examples/gpioset.py
 delete mode 100644 bindings/python/examples/helpers.py
 create mode 100755 bindings/python/examples/reconfigure_input_to_output.py
 create mode 100755 bindings/python/examples/toggle_multiple_line_values.py
 create mode 100755 bindings/python/examples/watch_line_info.py
 create mode 100755 bindings/python/examples/watch_line_rising.py
 create mode 100755 bindings/python/examples/watch_multiple_line_values.py

-- 
2.41.0


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

end of thread, other threads:[~2023-06-26  8:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-24  5:20 [libgpiod][PATCH 0/4] python examples and comment corrections Kent Gibson
2023-06-24  5:20 ` [libgpiod][PATCH 1/4] bindings: python: examples: replace tools examples with use case examples Kent Gibson
2023-06-26  8:02   ` Bartosz Golaszewski
2023-06-26  8:18     ` Kent Gibson
2023-06-26  8:24       ` Bartosz Golaszewski
2023-06-24  5:20 ` [libgpiod][PATCH 2/4] core: examples: fix file comments Kent Gibson
2023-06-26  8:07   ` Bartosz Golaszewski
2023-06-24  5:20 ` [libgpiod][PATCH 3/4] cxx: examples: file comment consistency Kent Gibson
2023-06-24  5:20 ` [libgpiod][PATCH 4/4] rust: " Kent Gibson

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).