aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2017-10-19 22:57:58 -0400
committerLinus Walleij <linus.walleij@linaro.org>2017-10-20 03:37:32 -0400
commit2cbfca66ba5e00606bb0f24aba1e9cd8efe58849 (patch)
tree0fc5c236b12b0e8f13404a747c7345d5fe2a225a /drivers/gpio
parentb2f68edfd5bb1c7613628a66ba71a0db0266ee22 (diff)
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib-of.c4
-rw-r--r--drivers/gpio/gpiolib.c6
-rw-r--r--drivers/gpio/gpiolib.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index bfcd20699ec8..e0d59e61b52f 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -153,8 +153,8 @@ struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id,
153 *flags |= GPIO_OPEN_SOURCE; 153 *flags |= GPIO_OPEN_SOURCE;
154 } 154 }
155 155
156 if (of_flags & OF_GPIO_SLEEP_MAY_LOOSE_VALUE) 156 if (of_flags & OF_GPIO_SLEEP_MAY_LOSE_VALUE)
157 *flags |= GPIO_SLEEP_MAY_LOOSE_VALUE; 157 *flags |= GPIO_SLEEP_MAY_LOSE_VALUE;
158 158
159 return desc; 159 return desc;
160} 160}
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index e7372093d968..3827f0767101 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -3010,7 +3010,7 @@ bool gpiochip_line_is_persistent(struct gpio_chip *chip, unsigned int offset)
3010 if (offset >= chip->ngpio) 3010 if (offset >= chip->ngpio)
3011 return false; 3011 return false;
3012 3012
3013 return !test_bit(FLAG_SLEEP_MAY_LOOSE_VALUE, 3013 return !test_bit(FLAG_SLEEP_MAY_LOSE_VALUE,
3014 &chip->gpiodev->descs[offset].flags); 3014 &chip->gpiodev->descs[offset].flags);
3015} 3015}
3016EXPORT_SYMBOL_GPL(gpiochip_line_is_persistent); 3016EXPORT_SYMBOL_GPL(gpiochip_line_is_persistent);
@@ -3435,8 +3435,8 @@ int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
3435 set_bit(FLAG_OPEN_DRAIN, &desc->flags); 3435 set_bit(FLAG_OPEN_DRAIN, &desc->flags);
3436 if (lflags & GPIO_OPEN_SOURCE) 3436 if (lflags & GPIO_OPEN_SOURCE)
3437 set_bit(FLAG_OPEN_SOURCE, &desc->flags); 3437 set_bit(FLAG_OPEN_SOURCE, &desc->flags);
3438 if (lflags & GPIO_SLEEP_MAY_LOOSE_VALUE) 3438 if (lflags & GPIO_SLEEP_MAY_LOSE_VALUE)
3439 set_bit(FLAG_SLEEP_MAY_LOOSE_VALUE, &desc->flags); 3439 set_bit(FLAG_SLEEP_MAY_LOSE_VALUE, &desc->flags);
3440 3440
3441 /* No particular flag request, return here... */ 3441 /* No particular flag request, return here... */
3442 if (!(dflags & GPIOD_FLAGS_BIT_DIR_SET)) { 3442 if (!(dflags & GPIOD_FLAGS_BIT_DIR_SET)) {
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h
index 10a48caf8477..af48322839c3 100644
--- a/drivers/gpio/gpiolib.h
+++ b/drivers/gpio/gpiolib.h
@@ -205,7 +205,7 @@ struct gpio_desc {
205#define FLAG_OPEN_SOURCE 8 /* Gpio is open source type */ 205#define FLAG_OPEN_SOURCE 8 /* Gpio is open source type */
206#define FLAG_USED_AS_IRQ 9 /* GPIO is connected to an IRQ */ 206#define FLAG_USED_AS_IRQ 9 /* GPIO is connected to an IRQ */
207#define FLAG_IS_HOGGED 11 /* GPIO is hogged */ 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 /* Connection label */ 210 /* Connection label */
211 const char *label; 211 const char *label;