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

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

 



From: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>

Signed-off-by: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
---
Changes
  v1 - >2: apply codespell to the next/libgpiod-2.0 branch

 NEWS                                     | 6 +++---
 bindings/python/tests/gpiomockupmodule.c | 2 +-
 include/gpiod.h                          | 6 +++---
 lib/line-config.c                        | 2 +-
 4 files changed, 8 insertions(+), 8 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/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 5595ff2..75e5b39 100644
--- a/include/gpiod.h
+++ b/include/gpiod.h
@@ -1076,7 +1076,7 @@ size_t gpiod_line_config_get_num_overrides(struct gpiod_line_config *config);
  * @brief Get the list of overridden offsets and the corresponding types of
  *	  overridden settings.
  * @param config Line config object.
- * @param offsets Array to store the overidden offsets. Must be sized to hold
+ * @param offsets Array to store the overridden offsets. Must be sized to hold
  *		  the number of unsigned integers returned by
  *		  ::gpiod_line_config_get_num_overrides.
  * @param props Array to store the types of overridden settings. Must be sized
@@ -1338,7 +1338,7 @@ int gpiod_line_request_wait_edge_event(struct gpiod_line_request *request,
  * @return On success returns the number of events read from the file
  *	   descriptor, on failure return -1.
  * @note This function will block if no event was queued for the line request.
- * @note Any exising events in the buffer are overwritten.  This is not an
+ * @note Any existing events in the buffer are overwritten. This is not an
  *       append operation.
  */
 int gpiod_line_request_read_edge_event(struct gpiod_line_request *request,
@@ -1434,7 +1434,7 @@ unsigned long gpiod_edge_event_get_line_seqno(struct gpiod_edge_event *event);
  * @note If capacity equals 0, it will be set to a default value of 64. If
  *	 capacity is larger than 1024, it will be limited to 1024.
  * @note The user space buffer is independent of the kernel buffer
- *	 (::gpiod_request_config_set_event_buffer_size).  As the user space
+ *	 (::gpiod_request_config_set_event_buffer_size). As the user space
  *	 buffer is filled from the kernel buffer, there is no benefit making
  *	 the user space buffer larger than the kernel buffer.
  *	 The default kernel buffer size for each request is 16*num_lines.
diff --git a/lib/line-config.c b/lib/line-config.c
index 979b4c5..07db6a6 100644
--- a/lib/line-config.c
+++ b/lib/line-config.c
@@ -44,7 +44,7 @@ static const int override_flag_list[] = {
 
 /*
  * Config overriding the defaults for a single line offset. Only flagged
- * settings are actually overriden for a line.
+ * settings are actually overridden for a line.
  */
 struct override_config {
 	struct base_config base;
-- 
2.17.0




[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