diff options
author | Colin Cronin <colinpatrickcronin@gmail.com> | 2015-05-18 14:41:43 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-05-19 10:52:30 -0400 |
commit | 20a8a96873f69dc915e872e291f4376f436b295a (patch) | |
tree | 6863c787d8f182dbb4073b7199641f3cb72eb75e /drivers | |
parent | af6c235d1a5c112964c3029eb0ed4b52c7aa33bf (diff) |
Drivers: gpio: Fix spelling errors
Fixed several spelling errors in gpio-lynxpoint, gpio-pca953x,
gpio-tegra, gpio-zynq, gpiolib-of, gpiolib.
Signed-off-by: Colin Cronin <colinpatrickcronin@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpio-lynxpoint.c | 2 | ||||
-rw-r--r-- | drivers/gpio/gpio-pca953x.c | 2 | ||||
-rw-r--r-- | drivers/gpio/gpio-tegra.c | 2 | ||||
-rw-r--r-- | drivers/gpio/gpio-zynq.c | 2 | ||||
-rw-r--r-- | drivers/gpio/gpiolib-of.c | 2 | ||||
-rw-r--r-- | drivers/gpio/gpiolib.c | 10 |
6 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpio/gpio-lynxpoint.c b/drivers/gpio/gpio-lynxpoint.c index 127c755b38dc..153af464c7a7 100644 --- a/drivers/gpio/gpio-lynxpoint.c +++ b/drivers/gpio/gpio-lynxpoint.c | |||
@@ -72,7 +72,7 @@ struct lp_gpio { | |||
72 | * | 72 | * |
73 | * per gpio specific registers consist of two 32bit registers per gpio | 73 | * per gpio specific registers consist of two 32bit registers per gpio |
74 | * (LP_CONFIG1 and LP_CONFIG2), with 94 gpios there's a total of | 74 | * (LP_CONFIG1 and LP_CONFIG2), with 94 gpios there's a total of |
75 | * 188 config registes. | 75 | * 188 config registers. |
76 | * | 76 | * |
77 | * A simplified view of the register layout look like this: | 77 | * A simplified view of the register layout look like this: |
78 | * | 78 | * |
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index e2da64abbccd..eed42035207d 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c | |||
@@ -630,7 +630,7 @@ static int device_pca957x_init(struct pca953x_chip *chip, u32 invert) | |||
630 | memset(val, 0, NBANK(chip)); | 630 | memset(val, 0, NBANK(chip)); |
631 | pca953x_write_regs(chip, PCA957X_INVRT, val); | 631 | pca953x_write_regs(chip, PCA957X_INVRT, val); |
632 | 632 | ||
633 | /* To enable register 6, 7 to controll pull up and pull down */ | 633 | /* To enable register 6, 7 to control pull up and pull down */ |
634 | memset(val, 0x02, NBANK(chip)); | 634 | memset(val, 0x02, NBANK(chip)); |
635 | pca953x_write_regs(chip, PCA957X_BKEN, val); | 635 | pca953x_write_regs(chip, PCA957X_BKEN, val); |
636 | 636 | ||
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 1741981d53c8..a19f81a661b4 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c | |||
@@ -288,7 +288,7 @@ static void tegra_gpio_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
288 | tegra_gpio_writel(1 << pin, GPIO_INT_CLR(gpio)); | 288 | tegra_gpio_writel(1 << pin, GPIO_INT_CLR(gpio)); |
289 | 289 | ||
290 | /* if gpio is edge triggered, clear condition | 290 | /* if gpio is edge triggered, clear condition |
291 | * before executing the hander so that we don't | 291 | * before executing the handler so that we don't |
292 | * miss edges | 292 | * miss edges |
293 | */ | 293 | */ |
294 | if (lvl & (0x100 << pin)) { | 294 | if (lvl & (0x100 << pin)) { |
diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index 184c4b1b2558..0d9663f53834 100644 --- a/drivers/gpio/gpio-zynq.c +++ b/drivers/gpio/gpio-zynq.c | |||
@@ -335,7 +335,7 @@ static void zynq_gpio_irq_ack(struct irq_data *irq_data) | |||
335 | * @irq_data: irq data containing irq number of gpio pin for the interrupt | 335 | * @irq_data: irq data containing irq number of gpio pin for the interrupt |
336 | * to enable | 336 | * to enable |
337 | * | 337 | * |
338 | * Clears the INTSTS bit and unmasks the given interrrupt. | 338 | * Clears the INTSTS bit and unmasks the given interrupt. |
339 | */ | 339 | */ |
340 | static void zynq_gpio_irq_enable(struct irq_data *irq_data) | 340 | static void zynq_gpio_irq_enable(struct irq_data *irq_data) |
341 | { | 341 | { |
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index a6c67c6b4680..9a0ec48a4737 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c | |||
@@ -242,7 +242,7 @@ int of_gpio_simple_xlate(struct gpio_chip *gc, | |||
242 | { | 242 | { |
243 | /* | 243 | /* |
244 | * We're discouraging gpio_cells < 2, since that way you'll have to | 244 | * We're discouraging gpio_cells < 2, since that way you'll have to |
245 | * write your own xlate function (that will have to retrive the GPIO | 245 | * write your own xlate function (that will have to retrieve the GPIO |
246 | * number and the flags from a single gpio cell -- this is possible, | 246 | * number and the flags from a single gpio cell -- this is possible, |
247 | * but not recommended). | 247 | * but not recommended). |
248 | */ | 248 | */ |
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 59cb4303e251..e01f6b2bfb3a 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c | |||
@@ -617,7 +617,7 @@ int gpiochip_irqchip_add(struct gpio_chip *gpiochip, | |||
617 | of_node = gpiochip->dev->of_node; | 617 | of_node = gpiochip->dev->of_node; |
618 | #ifdef CONFIG_OF_GPIO | 618 | #ifdef CONFIG_OF_GPIO |
619 | /* | 619 | /* |
620 | * If the gpiochip has an assigned OF node this takes precendence | 620 | * If the gpiochip has an assigned OF node this takes precedence |
621 | * FIXME: get rid of this and use gpiochip->dev->of_node everywhere | 621 | * FIXME: get rid of this and use gpiochip->dev->of_node everywhere |
622 | */ | 622 | */ |
623 | if (gpiochip->of_node) | 623 | if (gpiochip->of_node) |
@@ -1220,7 +1220,7 @@ EXPORT_SYMBOL_GPL(gpiod_get_value); | |||
1220 | /* | 1220 | /* |
1221 | * _gpio_set_open_drain_value() - Set the open drain gpio's value. | 1221 | * _gpio_set_open_drain_value() - Set the open drain gpio's value. |
1222 | * @desc: gpio descriptor whose state need to be set. | 1222 | * @desc: gpio descriptor whose state need to be set. |
1223 | * @value: Non-zero for setting it HIGH otherise it will set to LOW. | 1223 | * @value: Non-zero for setting it HIGH otherwise it will set to LOW. |
1224 | */ | 1224 | */ |
1225 | static void _gpio_set_open_drain_value(struct gpio_desc *desc, bool value) | 1225 | static void _gpio_set_open_drain_value(struct gpio_desc *desc, bool value) |
1226 | { | 1226 | { |
@@ -1247,7 +1247,7 @@ static void _gpio_set_open_drain_value(struct gpio_desc *desc, bool value) | |||
1247 | /* | 1247 | /* |
1248 | * _gpio_set_open_source_value() - Set the open source gpio's value. | 1248 | * _gpio_set_open_source_value() - Set the open source gpio's value. |
1249 | * @desc: gpio descriptor whose state need to be set. | 1249 | * @desc: gpio descriptor whose state need to be set. |
1250 | * @value: Non-zero for setting it HIGH otherise it will set to LOW. | 1250 | * @value: Non-zero for setting it HIGH otherwise it will set to LOW. |
1251 | */ | 1251 | */ |
1252 | static void _gpio_set_open_source_value(struct gpio_desc *desc, bool value) | 1252 | static void _gpio_set_open_source_value(struct gpio_desc *desc, bool value) |
1253 | { | 1253 | { |
@@ -1889,7 +1889,7 @@ EXPORT_SYMBOL_GPL(gpiod_count); | |||
1889 | * | 1889 | * |
1890 | * Return the GPIO descriptor corresponding to the function con_id of device | 1890 | * Return the GPIO descriptor corresponding to the function con_id of device |
1891 | * dev, -ENOENT if no GPIO has been assigned to the requested function, or | 1891 | * dev, -ENOENT if no GPIO has been assigned to the requested function, or |
1892 | * another IS_ERR() code if an error occured while trying to acquire the GPIO. | 1892 | * another IS_ERR() code if an error occurred while trying to acquire the GPIO. |
1893 | */ | 1893 | */ |
1894 | struct gpio_desc *__must_check __gpiod_get(struct device *dev, const char *con_id, | 1894 | struct gpio_desc *__must_check __gpiod_get(struct device *dev, const char *con_id, |
1895 | enum gpiod_flags flags) | 1895 | enum gpiod_flags flags) |
@@ -1969,7 +1969,7 @@ static int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id, | |||
1969 | * | 1969 | * |
1970 | * Return a valid GPIO descriptor, -ENOENT if no GPIO has been assigned to the | 1970 | * Return a valid GPIO descriptor, -ENOENT if no GPIO has been assigned to the |
1971 | * requested function and/or index, or another IS_ERR() code if an error | 1971 | * requested function and/or index, or another IS_ERR() code if an error |
1972 | * occured while trying to acquire the GPIO. | 1972 | * occurred while trying to acquire the GPIO. |
1973 | */ | 1973 | */ |
1974 | struct gpio_desc *__must_check __gpiod_get_index(struct device *dev, | 1974 | struct gpio_desc *__must_check __gpiod_get_index(struct device *dev, |
1975 | const char *con_id, | 1975 | const char *con_id, |