treewide: fix typos found with codespell
Subsystems (2)
PATCH v2 1/1 treewide: fix typos found with codespell
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>
---
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(-)
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/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 +3 -3
@@ -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.
lib/line-config.c +1 -1
@@ -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;
Signature · 1 line
2.17.0