treewide: change "correspond with" to "correspond to"
authorKent Gibson <warthog618@gmail.com>
Mon, 18 Nov 2019 14:46:12 +0000 (15:46 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 18 Nov 2019 14:46:12 +0000 (15:46 +0100)
Trivial grammar fix. "correspond with" can mean either being in agreement
with, happening at the same time, or communication between parties.
"correspond to" is used to mean equivalance, which is the intended use
throughout the documentation.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
bindings/python/gpiodmodule.c
include/gpiod.h
lib/core.c
tests/mockup/gpio-mockup.c

index d3c15add98efdaac320926a1ffa104f9c307566e..2f6ef51cca5e10e2e1a3efa9326f46d9154a91df 100644 (file)
@@ -1121,7 +1121,7 @@ PyDoc_STRVAR(gpiod_LineBulk_get_values_doc,
 "get_values() -> list of integers\n"
 "\n"
 "Read the values of all the lines held by this LineBulk object. The index\n"
-"of each value in the returned list corresponds with the index of the line\n"
+"of each value in the returned list corresponds to the index of the line\n"
 "in this gpiod.LineBulk object.");
 
 static PyObject *gpiod_LineBulk_get_values(gpiod_LineBulkObject *self,
@@ -1176,7 +1176,7 @@ PyDoc_STRVAR(gpiod_LineBulk_set_values_doc,
 "\n"
 "The number of values in the list passed as argument must be the same as\n"
 "the number of lines held by this gpiod.LineBulk object. The index of each\n"
-"value corresponds with the index of each line in the object.\n");
+"value corresponds to the index of each line in the object.\n");
 
 static PyObject *gpiod_LineBulk_set_values(gpiod_LineBulkObject *self,
                                           PyObject *args)
@@ -1199,7 +1199,7 @@ static PyObject *gpiod_LineBulk_set_values(gpiod_LineBulkObject *self,
        num_vals = PyObject_Size(val_list);
        if (self->num_lines != num_vals) {
                PyErr_SetString(PyExc_TypeError,
-                               "Number of values must correspond with the number of lines");
+                               "Number of values must correspond to the number of lines");
                return NULL;
        }
 
index 1ffb739a279dbde9a0c61c2a5ef366360adc1473..6dfa18a928fef7dda068c4d43f0c7f7f828b26c8 100644 (file)
@@ -623,7 +623,7 @@ gpiod_line_bulk_num_lines(struct gpiod_line_bulk *bulk)
  *
  * This is a variant of ::gpiod_line_bulk_foreach_line which uses an integer
  * variable (either signed or unsigned) to store the loop state. This offset
- * variable is guaranteed to correspond with the offset of the current line in
+ * variable is guaranteed to correspond to the offset of the current line in
  * the bulk->lines array.
  */
 #define gpiod_line_bulk_foreach_line_off(bulk, line, offset)           \
index 0bab09d5125babe0185e27f457245ad2de0a8c9b..d79e52e4303a8c91a3001f4ea2918a7e678ad20c 100644 (file)
@@ -110,7 +110,7 @@ static bool is_gpiochip_cdev(const char *path)
 
        /*
         * Make sure the major and minor numbers of the character device
-        * correspond with the ones in the dev attribute in sysfs.
+        * correspond to the ones in the dev attribute in sysfs.
         */
        snprintf(devstr, sizeof(devstr), "%u:%u",
                 major(statbuf.st_rdev), minor(statbuf.st_rdev));
index e3a53da873ecb2c3ec63f41b1c89d12b1883deb0..fa27bd74413e17469721e4158e89923c0c22eb43 100644 (file)
@@ -333,7 +333,7 @@ EXPORT int gpio_mockup_probe(struct gpio_mockup *ctx, unsigned int num_chips,
        /*
         * We can't assume that the order in which the mockup gpiochip
         * devices are created will be deterministic, yet we want the
-        * index passed to the test_chip_*() functions to correspond with the
+        * index passed to the test_chip_*() functions to correspond to the
         * order in which the chips were defined in the TEST_DEFINE()
         * macro.
         *