mbox series

[libgpiod,0/4] python examples and comment corrections

Message ID 20230624052054.13206-1-warthog618@gmail.com
Headers show
Series python examples and comment corrections | expand

Message

Kent Gibson June 24, 2023, 5:20 a.m. UTC
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