linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] mfd: lp87565: fix typo in define names
@ 2021-02-19 22:39 Luca Ceresoli
  2021-02-19 22:39 ` [PATCH 2/3] mfd: lp87565: remove unused define Luca Ceresoli
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Luca Ceresoli @ 2021-02-19 22:39 UTC (permalink / raw)
  To: Lee Jones
  Cc: Luca Ceresoli, Linus Walleij, Bartosz Golaszewski, Liam Girdwood,
	Mark Brown, linux-gpio, linux-kernel

"GOIO" should be "GPIO" here.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
 drivers/gpio/gpio-lp87565.c |  6 +++---
 include/linux/mfd/lp87565.h | 28 ++++++++++++++--------------
 2 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/drivers/gpio/gpio-lp87565.c b/drivers/gpio/gpio-lp87565.c
index e1244520cf7d..fcde6708b5df 100644
--- a/drivers/gpio/gpio-lp87565.c
+++ b/drivers/gpio/gpio-lp87565.c
@@ -123,14 +123,14 @@ static int lp87565_gpio_set_config(struct gpio_chip *gc, unsigned int offset,
 		return regmap_update_bits(gpio->map,
 					  LP87565_REG_GPIO_CONFIG,
 					  BIT(offset +
-					      __ffs(LP87565_GOIO1_OD)),
+					      __ffs(LP87565_GPIO1_OD)),
 					  BIT(offset +
-					      __ffs(LP87565_GOIO1_OD)));
+					      __ffs(LP87565_GPIO1_OD)));
 	case PIN_CONFIG_DRIVE_PUSH_PULL:
 		return regmap_update_bits(gpio->map,
 					  LP87565_REG_GPIO_CONFIG,
 					  BIT(offset +
-					      __ffs(LP87565_GOIO1_OD)), 0);
+					      __ffs(LP87565_GPIO1_OD)), 0);
 	default:
 		return -ENOTSUPP;
 	}
diff --git a/include/linux/mfd/lp87565.h b/include/linux/mfd/lp87565.h
index d44ddfb6bb63..2620554f357a 100644
--- a/include/linux/mfd/lp87565.h
+++ b/include/linux/mfd/lp87565.h
@@ -222,20 +222,20 @@ enum lp87565_device_type {
 #define LP87565_GPIO2_SEL			BIT(1)
 #define LP87565_GPIO1_SEL			BIT(0)
 
-#define LP87565_GOIO3_OD			BIT(6)
-#define LP87565_GOIO2_OD			BIT(5)
-#define LP87565_GOIO1_OD			BIT(4)
-#define LP87565_GOIO3_DIR			BIT(2)
-#define LP87565_GOIO2_DIR			BIT(1)
-#define LP87565_GOIO1_DIR			BIT(0)
-
-#define LP87565_GOIO3_IN			BIT(2)
-#define LP87565_GOIO2_IN			BIT(1)
-#define LP87565_GOIO1_IN			BIT(0)
-
-#define LP87565_GOIO3_OUT			BIT(2)
-#define LP87565_GOIO2_OUT			BIT(1)
-#define LP87565_GOIO1_OUT			BIT(0)
+#define LP87565_GPIO3_OD			BIT(6)
+#define LP87565_GPIO2_OD			BIT(5)
+#define LP87565_GPIO1_OD			BIT(4)
+#define LP87565_GPIO3_DIR			BIT(2)
+#define LP87565_GPIO2_DIR			BIT(1)
+#define LP87565_GPIO1_DIR			BIT(0)
+
+#define LP87565_GPIO3_IN			BIT(2)
+#define LP87565_GPIO2_IN			BIT(1)
+#define LP87565_GPIO1_IN			BIT(0)
+
+#define LP87565_GPIO3_OUT			BIT(2)
+#define LP87565_GPIO2_OUT			BIT(1)
+#define LP87565_GPIO1_OUT			BIT(0)
 
 /* Number of step-down converters available */
 #define LP87565_NUM_BUCK		6
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-05-19 12:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19 22:39 [PATCH 1/3] mfd: lp87565: fix typo in define names Luca Ceresoli
2021-02-19 22:39 ` [PATCH 2/3] mfd: lp87565: remove unused define Luca Ceresoli
2021-03-08 14:07   ` Lee Jones
2021-02-19 22:39 ` [PATCH 3/3] mfd: lp87565: move LP87565_regulator_id to .c file Luca Ceresoli
2021-03-08 14:07   ` Lee Jones
2021-03-08 14:04 ` [PATCH 1/3] mfd: lp87565: fix typo in define names Lee Jones
2021-05-12  9:17   ` Luca Ceresoli
2021-05-12  9:59     ` Lee Jones
2021-05-12 11:01       ` Luca Ceresoli
2021-03-08 14:59 ` Bartosz Golaszewski
2021-05-12 10:00   ` Lee Jones
2021-05-19 12:35 ` [GIT PULL] Immutable branch between MFD, GPIO and Regulator due for the v5.14 merge window Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).