public inbox for linux-gpio@vger.kernel.org
 help / color / mirror / Atom feed
From: Kent Gibson <warthog618@gmail.com>
To: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: linux-gpio@vger.kernel.org
Subject: Re: [libgpiod][PATCH] bindings: rust: fix documentation of line_request set_values
Date: Mon, 16 Jan 2023 20:45:16 +0800	[thread overview]
Message-ID: <Y8VG3LxGa1z95FzA@sol> (raw)
In-Reply-To: <CAMRc=MdHUV5vS5cWn+s-owEPFVCzoi8=hA0XF5V1cPPLcATx6Q@mail.gmail.com>

On Mon, Jan 16, 2023 at 10:05:43AM +0100, Bartosz Golaszewski wrote:
> On Mon, Jan 16, 2023 at 1:36 AM Kent Gibson <warthog618@gmail.com> wrote:
> >
> > Replace "Get" with "Set".
> >
> > Signed-off-by: Kent Gibson <warthog618@gmail.com>
> > ---
> >  bindings/rust/libgpiod/src/line_request.rs | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/bindings/rust/libgpiod/src/line_request.rs b/bindings/rust/libgpiod/src/line_request.rs
> > index 2816cc1..35f07b3 100644
> > --- a/bindings/rust/libgpiod/src/line_request.rs
> > +++ b/bindings/rust/libgpiod/src/line_request.rs
> > @@ -106,7 +106,7 @@ impl Request {
> >          }
> >      }
> >
> > -    /// Get values of a subset of lines associated with the request.
> > +    /// Set values of a subset of lines associated with the request.
> >      pub fn set_values_subset(&self, map: ValueMap) -> Result<()> {
> >          let mut offsets = Vec::new();
> >          let mut values = Vec::new();
> > @@ -136,7 +136,7 @@ impl Request {
> >          }
> >      }
> >
> > -    /// Get values of all lines associated with the request.
> > +    /// Set values of all lines associated with the request.
> >      pub fn set_values(&self, values: &[Value]) -> Result<()> {
> >          if values.len() != self.num_lines() {
> >              return Err(Error::InvalidArguments);
> > --
> > 2.39.0
> >
> 
> What commit is this patch's parent? It doesn't apply on top of master.
> 

My bad - I've got a commit in there where I was playing with fixing the
clippy warnings from rust 1.66 (I suspect they are false positives so
haven't submitted a patch).

I'll rebase and resubmit.

Cheers,
Kent.

      reply	other threads:[~2023-01-16 12:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-16  0:36 [libgpiod][PATCH] bindings: rust: fix documentation of line_request set_values Kent Gibson
2023-01-16  9:05 ` Bartosz Golaszewski
2023-01-16 12:45   ` Kent Gibson [this message]

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=Y8VG3LxGa1z95FzA@sol \
    --to=warthog618@gmail.com \
    --cc=brgl@bgdev.pl \
    --cc=linux-gpio@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox