Re: [libgpiod][PATCH] treewide: fix typos found with codespell

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 15, 2022 at 12:26 PM <yegorslists@xxxxxxxxxxxxxx> wrote:
>
> From: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
>
> Signed-off-by: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
> ---
>  NEWS                                     | 6 +++---
>  bindings/cxx/gpiod.hpp                   | 2 +-
>  bindings/python/tests/gpiomockupmodule.c | 2 +-
>  include/gpiod.h                          | 2 +-
>  4 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/NEWS b/NEWS
> index c843c3c..0e173f8 100644
> --- a/NEWS
> +++ b/NEWS
> @@ -52,7 +52,7 @@ New features:
>
>  Improvements:
>  - constified function arguments where applicable in libgpiomockup
> -- fixed the name of the test exeucutable displayed at build time
> +- fixed the name of the test executable displayed at build time
>  - improved the function pointer casting in Python bindings to avoid warnings
>    emitted by GCC8
>  - switched to using the KERNEL_VERSION() macro in tests instead of handcoded
> @@ -65,7 +65,7 @@ Improvements:
>    using it to set the pull of dummy lines
>  - add several new test cases
>  - improved Python example programs (made gpiomon's output similar to the
> -  original tool, make gpioset wait for an ENTER pres by default)
> +  original tool, make gpioset wait for an ENTER press by default)
>  - fixed the major:minor number comparison between the device and sysfs
>  - deprecated the gpiod_line_needs_update() function and removed the logic
>    behind it from the library
> @@ -233,7 +233,7 @@ Bug fixes:
>    gpioget
>  - fix a line test case: don't use open-drain or open-source flags for input
>    mode
> -- fix the flags passed to ar in order to supress a build warning
> +- fix the flags passed to ar in order to suppress a build warning
>  - set the last error code in gpiod_chip_open_by_label() to ENOENT if a chip
>    can't be found
>  - fix checking the kernel version in the test suite
> diff --git a/bindings/cxx/gpiod.hpp b/bindings/cxx/gpiod.hpp
> index e3ce2fc..87ecf41 100644
> --- a/bindings/cxx/gpiod.hpp
> +++ b/bindings/cxx/gpiod.hpp
> @@ -282,7 +282,7 @@ public:
>
>         /**
>          * @brief Get the offset of this line.
> -        * @return Offet of this line.
> +        * @return Offset of this line.
>          */
>         unsigned int offset(void) const;
>
> diff --git a/bindings/python/tests/gpiomockupmodule.c b/bindings/python/tests/gpiomockupmodule.c
> index 761d431..46737c2 100644
> --- a/bindings/python/tests/gpiomockupmodule.c
> +++ b/bindings/python/tests/gpiomockupmodule.c
> @@ -61,7 +61,7 @@ static PyObject *gpiomockup_Mockup_probe(gpiomockup_MockupObject *self,
>                 return NULL;
>         } else if (num_chips == 0) {
>                 PyErr_SetString(PyExc_TypeError,
> -                               "Number of chips must be greater thatn 0");
> +                               "Number of chips must be greater than 0");
>                 return NULL;
>         }
>
> diff --git a/include/gpiod.h b/include/gpiod.h
> index a4ce01f..6a20a7d 100644
> --- a/include/gpiod.h
> +++ b/include/gpiod.h
> @@ -114,7 +114,7 @@ unsigned int gpiod_chip_get_num_lines(struct gpiod_chip *chip);
>   * @brief Get the handle to the GPIO line at given offset.
>   * @param chip The GPIO chip object.
>   * @param offset The offset of the GPIO line.
> - * @return Pointer to the GPIO line handle or NULL if an error occured.
> + * @return Pointer to the GPIO line handle or NULL if an error occurred.
>   */
>  struct gpiod_line *
>  gpiod_chip_get_line(struct gpiod_chip *chip, unsigned int offset);
> --
> 2.17.0
>

Can you run this tool on the next/libgpiod-2.0 branch instead? It will
soon be merged into master and replace most of the code you're
updating here.

Bart



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux