All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bartosz Golaszewski <brgl@bgdev.pl>
To: Kent Gibson <warthog618@gmail.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-gpio@vger.kernel.org,
	Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Subject: [libgpiod][PATCH v2 0/8] treewide: continue beating libgpiod v2 into shape for an upcoming release
Date: Fri, 20 Jan 2023 10:45:07 +0100	[thread overview]
Message-ID: <20230120094515.40464-1-brgl@bgdev.pl> (raw)

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

This series contains an assortment of smaller and bigger changes. Some are
just simple updates to docs, some fix bugs and we have two more changes to
the API: unifying the get_offsets functions for line config and line request
as well as providing an interface for setting multiple output values at once
in line_config before requesting lines.

Rust bindings have also been updated slightly so Viresh please make sure to
take a look and review.

I really hope this is the last set of bigger changes and that I'll be able
to tag an RC and release v2 in the next couple of weeks.

v1 -> v2:
- apply non-controversial patches and drop them from the series
- fix README as per Andy's suggestions
- extend the test cases for gpiod_line_config/request_get_offsets()
- improve rust code for getting line settings from line config
- improve the documentation for gpiod_line_config_set_output_values()
- extend the python support for setting global output values by allowing
  to pass mappings from line names/offsets to line values

Bartosz Golaszewski (8):
  README: update for libgpiod v2
  treewide: unify gpiod_line_config/request_get_offsets() functions
  core: provide gpiod_line_config_set_output_values()
  gpioset: use gpiod_line_config_set_output_values()
  bindings: cxx: add line_config.set_output_values()
  bindings: python: add the output_values argument to
    Chip.request_lines()
  bindings: rust: make mutators return &mut self
  bindings: rust: provide line_config.set_output_values()

 README                                        |  33 ++--
 bindings/cxx/gpiodcxx/line-config.hpp         |   7 +
 bindings/cxx/internal.hpp                     |   1 +
 bindings/cxx/line-config.cpp                  |  33 ++--
 bindings/cxx/line-request.cpp                 |   6 +-
 bindings/cxx/line-settings.cpp                |   5 +
 bindings/cxx/tests/tests-line-config.cpp      |  51 +++++++
 bindings/python/gpiod/chip.py                 |  30 ++++
 bindings/python/gpiod/ext/line-config.c       |  64 ++++++++
 bindings/python/gpiod/ext/request.c           |   8 +-
 bindings/python/tests/tests_line_request.py   |  55 +++++++
 .../rust/libgpiod/examples/gpio_events.rs     |   2 +-
 .../examples/gpio_threaded_info_events.rs     |   6 +-
 bindings/rust/libgpiod/examples/gpioget.rs    |   4 +-
 bindings/rust/libgpiod/examples/gpiomon.rs    |   2 +-
 bindings/rust/libgpiod/examples/gpioset.rs    |   4 +-
 bindings/rust/libgpiod/src/lib.rs             |   1 +
 bindings/rust/libgpiod/src/line_config.rs     |  84 +++++-----
 bindings/rust/libgpiod/src/line_request.rs    |  24 +--
 bindings/rust/libgpiod/src/request_config.rs  |   8 +-
 bindings/rust/libgpiod/tests/common/config.rs |   8 +-
 bindings/rust/libgpiod/tests/info_event.rs    |   6 +-
 bindings/rust/libgpiod/tests/line_config.rs   |  76 ++++++++--
 bindings/rust/libgpiod/tests/line_request.rs  |  73 ++++-----
 .../rust/libgpiod/tests/request_config.rs     |   2 +-
 configure.ac                                  |   1 +
 include/gpiod.h                               |  87 ++++++++---
 lib/line-config.c                             |  97 +++++++++---
 lib/line-request.c                            |  23 ++-
 tests/gpiod-test-helpers.h                    |  10 ++
 tests/tests-line-config.c                     | 143 +++++++++++++++---
 tests/tests-line-request.c                    |  49 +++++-
 tools/gpioset.c                               |  21 +--
 33 files changed, 777 insertions(+), 247 deletions(-)

-- 
2.37.2


             reply	other threads:[~2023-01-20  9:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-20  9:45 Bartosz Golaszewski [this message]
2023-01-20  9:45 ` [libgpiod][PATCH v2 1/8] README: update for libgpiod v2 Bartosz Golaszewski
2023-01-20  9:45 ` [libgpiod][PATCH v2 2/8] treewide: unify gpiod_line_config/request_get_offsets() functions Bartosz Golaszewski
2023-01-20  9:45 ` [libgpiod][PATCH v2 3/8] core: provide gpiod_line_config_set_output_values() Bartosz Golaszewski
2023-01-20  9:45 ` [libgpiod][PATCH v2 4/8] gpioset: use gpiod_line_config_set_output_values() Bartosz Golaszewski
2023-01-20  9:45 ` [libgpiod][PATCH v2 5/8] bindings: cxx: add line_config.set_output_values() Bartosz Golaszewski
2023-01-20  9:45 ` [libgpiod][PATCH v2 6/8] bindings: python: add the output_values argument to Chip.request_lines() Bartosz Golaszewski
2023-01-20  9:45 ` [libgpiod][PATCH v2 7/8] bindings: rust: make mutators return &mut self Bartosz Golaszewski
2023-01-25  9:25   ` Viresh Kumar
2023-01-20  9:45 ` [libgpiod][PATCH v2 8/8] bindings: rust: provide line_config.set_output_values() Bartosz Golaszewski
2023-01-25  9:25   ` Viresh Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230120094515.40464-1-brgl@bgdev.pl \
    --to=brgl@bgdev.pl \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=bartosz.golaszewski@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=viresh.kumar@linaro.org \
    --cc=warthog618@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.