Skip to contentSkip to conversation

gpio: bd71828: Remove unneeded defines for GPIO_LINE_DIRECTION_IN/OUT

PATCH In review Axel Lin 3 participants 4 messages Jan 29, 2020 – Feb 4, 2020

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 gpio: bd71828: Remove unneeded defines for GPIO_LINE_DIRECTION_IN/OUT

They are defined in gpio/driver.h now.

---
 drivers/gpio/gpio-bd71828.c | 10 ----------
 1 file changed, 10 deletions(-)
drivers/gpio/gpio-bd71828.c +0 -10
index 04aade9e0a4d..3dbbc638e9a9 100644
@@ -10,16 +10,6 @@
 #define GPIO_OUT_REG(off) (BD71828_REG_GPIO_CTRL1 + (off))
 #define HALL_GPIO_OFFSET 3
 
-/*
- * These defines can be removed when
- * "gpio: Add definition for GPIO direction"
- * (9208b1e77d6e8e9776f34f46ef4079ecac9c3c25 in GPIO tree) gets merged,
- */
-#ifndef GPIO_LINE_DIRECTION_IN
-	#define GPIO_LINE_DIRECTION_IN 1
-	#define GPIO_LINE_DIRECTION_OUT 0
-#endif
-
 struct bd71828_gpio {
 	struct rohm_regmap_dev chip;
 	struct gpio_chip gpio;
Signature · 1 line
2.20.1
#1 lore raw
Quoted 17 lines · Axel Lin

They are defined in gpio/driver.h now.

---
 drivers/gpio/gpio-bd71828.c | 10 ----------
 1 file changed, 10 deletions(-)
drivers/gpio/gpio- renamed from drivers/gpio/gpio-bd71828.c +0 -0

bd71828.c
index 04aade9e0a4d..3dbbc638e9a9 100644

drivers/gpio/gpio-bd71828.c +0 -1
@@ -10,16 +10,6 @@
 #define GPIO_OUT_REG(off) (BD71828_REG_GPIO_CTRL1 + (off))
 #define HALL_GPIO_OFFSET 3
 
-/*

drivers/gpio/gpio-bd71828.c line 14

Quoted 10 lines
drivers/gpio/gpio-bd71828.c +0 -8
- * These defines can be removed when
- * "gpio: Add definition for GPIO direction"
- * (9208b1e77d6e8e9776f34f46ef4079ecac9c3c25 in GPIO tree) gets
 merged,
- */
-#ifndef GPIO_LINE_DIRECTION_IN
-	#define GPIO_LINE_DIRECTION_IN 1
-	#define GPIO_LINE_DIRECTION_OUT 0
-#endif
 

Thanks once again for doing the cleanup! :)

Br,
Matti

author
#2 lore raw

Vaittinen, Matti <[email protected]> 於 2020年1月29日 週三 下午11:06寫道:

Quoted 19 lines · Axel Lin
Quoted 16 lines

They are defined in gpio/driver.h now.

---
 drivers/gpio/gpio-bd71828.c | 10 ----------
 1 file changed, 10 deletions(-)
drivers/gpio/gpio- renamed from drivers/gpio/gpio-bd71828.c +0 -0

bd71828.c
index 04aade9e0a4d..3dbbc638e9a9 100644

drivers/gpio/gpio-bd71828.c +0 -0
@@ -10,16 +10,6 @@
 #define GPIO_OUT_REG(off) (BD71828_REG_GPIO_CTRL1 + (off))
 #define HALL_GPIO_OFFSET 3
 
Quoted 13 lines

drivers/gpio/gpio-bd71828.c

Quoted 11 lines
drivers/gpio/gpio-bd71828.c +0 -9
-/*
- * These defines can be removed when
- * "gpio: Add definition for GPIO direction"
- * (9208b1e77d6e8e9776f34f46ef4079ecac9c3c25 in GPIO tree) gets
 merged,
- */
-#ifndef GPIO_LINE_DIRECTION_IN
-     #define GPIO_LINE_DIRECTION_IN 1
-     #define GPIO_LINE_DIRECTION_OUT 0
-#endif
 

Thanks once again for doing the cleanup! :)

Hi Matti,
Can you reply with your Ack?
It would be easier for maintainers to pick up the patch with Ack.

Thanks,
Axel

#3 lore raw
In reply to Axel Lin

śr., 29 sty 2020 o 13:30 Axel Lin <[email protected]> napisał(a):

Quoted 30 lines

They are defined in gpio/driver.h now.

---
 drivers/gpio/gpio-bd71828.c | 10 ----------
 1 file changed, 10 deletions(-)
drivers/gpio/gpio-bd71828.c +0 -11
index 04aade9e0a4d..3dbbc638e9a9 100644
@@ -10,16 +10,6 @@
 #define GPIO_OUT_REG(off) (BD71828_REG_GPIO_CTRL1 + (off))
 #define HALL_GPIO_OFFSET 3
 
-/*
- * These defines can be removed when
- * "gpio: Add definition for GPIO direction"
- * (9208b1e77d6e8e9776f34f46ef4079ecac9c3c25 in GPIO tree) gets merged,
- */
-#ifndef GPIO_LINE_DIRECTION_IN
-       #define GPIO_LINE_DIRECTION_IN 1
-       #define GPIO_LINE_DIRECTION_OUT 0
-#endif
-
 struct bd71828_gpio {
        struct rohm_regmap_dev chip;
        struct gpio_chip gpio;
--
Quoted 2 lines

2.20.1

Applied for fixes. Thanks!

Bartosz