Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: Fix loose spelling

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>

authored by

Andrew Jeffery and committed by
Linus Walleij
2cbfca66 b2f68edf

+9 -9
+2 -2
drivers/gpio/gpiolib-of.c
··· 153 153 *flags |= GPIO_OPEN_SOURCE; 154 154 } 155 155 156 - if (of_flags & OF_GPIO_SLEEP_MAY_LOOSE_VALUE) 157 - *flags |= GPIO_SLEEP_MAY_LOOSE_VALUE; 156 + if (of_flags & OF_GPIO_SLEEP_MAY_LOSE_VALUE) 157 + *flags |= GPIO_SLEEP_MAY_LOSE_VALUE; 158 158 159 159 return desc; 160 160 }
+3 -3
drivers/gpio/gpiolib.c
··· 3010 3010 if (offset >= chip->ngpio) 3011 3011 return false; 3012 3012 3013 - return !test_bit(FLAG_SLEEP_MAY_LOOSE_VALUE, 3013 + return !test_bit(FLAG_SLEEP_MAY_LOSE_VALUE, 3014 3014 &chip->gpiodev->descs[offset].flags); 3015 3015 } 3016 3016 EXPORT_SYMBOL_GPL(gpiochip_line_is_persistent); ··· 3435 3435 set_bit(FLAG_OPEN_DRAIN, &desc->flags); 3436 3436 if (lflags & GPIO_OPEN_SOURCE) 3437 3437 set_bit(FLAG_OPEN_SOURCE, &desc->flags); 3438 - if (lflags & GPIO_SLEEP_MAY_LOOSE_VALUE) 3439 - set_bit(FLAG_SLEEP_MAY_LOOSE_VALUE, &desc->flags); 3438 + if (lflags & GPIO_SLEEP_MAY_LOSE_VALUE) 3439 + set_bit(FLAG_SLEEP_MAY_LOSE_VALUE, &desc->flags); 3440 3440 3441 3441 /* No particular flag request, return here... */ 3442 3442 if (!(dflags & GPIOD_FLAGS_BIT_DIR_SET)) {
+1 -1
drivers/gpio/gpiolib.h
··· 205 205 #define FLAG_OPEN_SOURCE 8 /* Gpio is open source type */ 206 206 #define FLAG_USED_AS_IRQ 9 /* GPIO is connected to an IRQ */ 207 207 #define FLAG_IS_HOGGED 11 /* GPIO is hogged */ 208 - #define FLAG_SLEEP_MAY_LOOSE_VALUE 12 /* GPIO may loose value in sleep */ 208 + #define FLAG_SLEEP_MAY_LOSE_VALUE 12 /* GPIO may lose value in sleep */ 209 209 210 210 /* Connection label */ 211 211 const char *label;
+1 -1
include/dt-bindings/gpio/gpio.h
··· 30 30 31 31 /* Bit 3 express GPIO suspend/resume persistence */ 32 32 #define GPIO_SLEEP_MAINTAIN_VALUE 0 33 - #define GPIO_SLEEP_MAY_LOOSE_VALUE 8 33 + #define GPIO_SLEEP_MAY_LOSE_VALUE 8 34 34 35 35 #endif
+1 -1
include/linux/gpio/machine.h
··· 10 10 GPIO_OPEN_DRAIN = (1 << 1), 11 11 GPIO_OPEN_SOURCE = (1 << 2), 12 12 GPIO_SLEEP_MAINTAIN_VALUE = (0 << 3), 13 - GPIO_SLEEP_MAY_LOOSE_VALUE = (1 << 3), 13 + GPIO_SLEEP_MAY_LOSE_VALUE = (1 << 3), 14 14 }; 15 15 16 16 /**
+1 -1
include/linux/of_gpio.h
··· 31 31 OF_GPIO_ACTIVE_LOW = 0x1, 32 32 OF_GPIO_SINGLE_ENDED = 0x2, 33 33 OF_GPIO_OPEN_DRAIN = 0x4, 34 - OF_GPIO_SLEEP_MAY_LOOSE_VALUE = 0x8, 34 + OF_GPIO_SLEEP_MAY_LOSE_VALUE = 0x8, 35 35 }; 36 36 37 37 #ifdef CONFIG_OF_GPIO