All of lore.kernel.org
 help / color / mirror / Atom feed
* [libgpiod][PATCH] bindings: rust: fix documentation of line_request set_values
@ 2023-01-16  0:36 Kent Gibson
  2023-01-16  9:05 ` Bartosz Golaszewski
  0 siblings, 1 reply; 3+ messages in thread
From: Kent Gibson @ 2023-01-16  0:36 UTC (permalink / raw)
  To: linux-gpio, brgl; +Cc: Kent Gibson

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


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

* Re: [libgpiod][PATCH] bindings: rust: fix documentation of line_request set_values
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Bartosz Golaszewski @ 2023-01-16  9:05 UTC (permalink / raw)
  To: Kent Gibson; +Cc: linux-gpio

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.

Bart

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

* Re: [libgpiod][PATCH] bindings: rust: fix documentation of line_request set_values
  2023-01-16  9:05 ` Bartosz Golaszewski
@ 2023-01-16 12:45   ` Kent Gibson
  0 siblings, 0 replies; 3+ messages in thread
From: Kent Gibson @ 2023-01-16 12:45 UTC (permalink / raw)
  To: Bartosz Golaszewski; +Cc: linux-gpio

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.

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

end of thread, other threads:[~2023-01-16 12:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.