treewide: fix typos found with codespell
PATCH 1/1 treewide: fix typos found with codespell
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>
--- NEWS | 6 +++--- bindings/cxx/gpiod.hpp | 2 +- bindings/python/tests/gpiomockupmodule.c | 2 +- include/gpiod.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)
NEWS +3 -3
@@ -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
bindings/cxx/gpiod.hpp +1 -1
@@ -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;
bindings/python/tests/gpiomockupmodule.c +1 -1
@@ -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 ; }
include/gpiod.h +1 -1
@@ -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);
Signature · 1 line
2.17.0
Quoted 82 lines · On Wed, Jun 15, 2022 at 12:26 PM <[email protected]> wrote:
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>--- NEWS | 6 +++--- bindings/cxx/gpiod.hpp | 2 +- bindings/python/tests/gpiomockupmodule.c | 2 +- include/gpiod.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)NEWS +3
-3@@ -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 suitebindings/cxx/gpiod.hpp +1
-1@@ -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;bindings/python/tests/gpiomockupmodule.c +1
-1@@ -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 ; }include/gpiod.h +1
-2@@ -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); --
Quoted 2 lines
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