]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
gpio: Fix loose spelling
authorAndrew Jeffery <andrew@aj.id.au>
Fri, 20 Oct 2017 02:57:58 +0000 (13:27 +1030)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Oct 2017 07:37:32 +0000 (09:37 +0200)
Literally.

I expect "lose" was meant here, rather than "loose", though you could feasibly
use a somewhat uncommon definition of "loose" to mean what would be meant by
"lose": "Loose the hounds" for instance, as in "Release the hounds".
Substituting in "value" for "hounds" gives "release the value", and makes some
sense, but futher substituting back to loose gives "loose the value" which
overall just seems a bit anachronistic.

Instead, use modern, pragmatic English and save a character.

Cc: Russell Currey <ruscur@russell.cc>
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-of.c
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h
include/dt-bindings/gpio/gpio.h
include/linux/gpio/machine.h
include/linux/of_gpio.h

index bfcd20699ec8897bb48bb319f278abc6f85d0469..e0d59e61b52fa6aa53e7830ae1ab1c59ceec2453 100644 (file)
@@ -153,8 +153,8 @@ struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id,
                        *flags |= GPIO_OPEN_SOURCE;
        }
 
-       if (of_flags & OF_GPIO_SLEEP_MAY_LOOSE_VALUE)
-               *flags |= GPIO_SLEEP_MAY_LOOSE_VALUE;
+       if (of_flags & OF_GPIO_SLEEP_MAY_LOSE_VALUE)
+               *flags |= GPIO_SLEEP_MAY_LOSE_VALUE;
 
        return desc;
 }
index e7372093d968af9c8456e337ea88963da8bd44bb..3827f07671013237d8350db7ea6f9ca43c9500d8 100644 (file)
@@ -3010,7 +3010,7 @@ bool gpiochip_line_is_persistent(struct gpio_chip *chip, unsigned int offset)
        if (offset >= chip->ngpio)
                return false;
 
-       return !test_bit(FLAG_SLEEP_MAY_LOOSE_VALUE,
+       return !test_bit(FLAG_SLEEP_MAY_LOSE_VALUE,
                         &chip->gpiodev->descs[offset].flags);
 }
 EXPORT_SYMBOL_GPL(gpiochip_line_is_persistent);
@@ -3435,8 +3435,8 @@ int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
                set_bit(FLAG_OPEN_DRAIN, &desc->flags);
        if (lflags & GPIO_OPEN_SOURCE)
                set_bit(FLAG_OPEN_SOURCE, &desc->flags);
-       if (lflags & GPIO_SLEEP_MAY_LOOSE_VALUE)
-               set_bit(FLAG_SLEEP_MAY_LOOSE_VALUE, &desc->flags);
+       if (lflags & GPIO_SLEEP_MAY_LOSE_VALUE)
+               set_bit(FLAG_SLEEP_MAY_LOSE_VALUE, &desc->flags);
 
        /* No particular flag request, return here... */
        if (!(dflags & GPIOD_FLAGS_BIT_DIR_SET)) {
index 10a48caf8477c81bc8a2502594acf8607368b9da..af48322839c3d6004ee16a32591f1f434d364fc8 100644 (file)
@@ -205,7 +205,7 @@ struct gpio_desc {
 #define FLAG_OPEN_SOURCE 8     /* Gpio is open source type */
 #define FLAG_USED_AS_IRQ 9     /* GPIO is connected to an IRQ */
 #define FLAG_IS_HOGGED 11      /* GPIO is hogged */
-#define FLAG_SLEEP_MAY_LOOSE_VALUE 12  /* GPIO may loose value in sleep */
+#define FLAG_SLEEP_MAY_LOSE_VALUE 12   /* GPIO may lose value in sleep */
 
        /* Connection label */
        const char              *label;
index c5074584561d9459db81230a9d7081b30189cac8..70de5b7a6c9be9ac101c6296f00d46e3a8453fc7 100644 (file)
@@ -30,6 +30,6 @@
 
 /* Bit 3 express GPIO suspend/resume persistence */
 #define GPIO_SLEEP_MAINTAIN_VALUE 0
-#define GPIO_SLEEP_MAY_LOOSE_VALUE 8
+#define GPIO_SLEEP_MAY_LOSE_VALUE 8
 
 #endif
index ba4ccfd900f91cafe1721a6a633c30b967bf9475..5e9f294c29eb202d04d89954011abeefa47457cf 100644 (file)
@@ -10,7 +10,7 @@ enum gpio_lookup_flags {
        GPIO_OPEN_DRAIN = (1 << 1),
        GPIO_OPEN_SOURCE = (1 << 2),
        GPIO_SLEEP_MAINTAIN_VALUE = (0 << 3),
-       GPIO_SLEEP_MAY_LOOSE_VALUE = (1 << 3),
+       GPIO_SLEEP_MAY_LOSE_VALUE = (1 << 3),
 };
 
 /**
index ca10f43564deec18de2f03f225b2e479902976f1..1fe205582111489d4efac1cce323a06ab404212c 100644 (file)
@@ -31,7 +31,7 @@ enum of_gpio_flags {
        OF_GPIO_ACTIVE_LOW = 0x1,
        OF_GPIO_SINGLE_ENDED = 0x2,
        OF_GPIO_OPEN_DRAIN = 0x4,
-       OF_GPIO_SLEEP_MAY_LOOSE_VALUE = 0x8,
+       OF_GPIO_SLEEP_MAY_LOSE_VALUE = 0x8,
 };
 
 #ifdef CONFIG_OF_GPIO