gpio: bd71828: Remove unneeded defines for GPIO_LINE_DIRECTION_IN/OUT
Subsystems (2)
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
@@ -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
Quoted 17 lines · Axel Lin
They are defined in
gpio/driver.hnow.Signed-off-by Axel Lin <[email protected]>--- 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
index04aade9e0a4d..3dbbc638e9a9100644drivers/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
Vaittinen, Matti <[email protected]> 於 2020年1月29日 週三 下午11:06寫道:
Quoted 19 lines · Axel Lin
Quoted 16 lines
They are defined in
gpio/driver.hnow.Signed-off-by Axel Lin <[email protected]>--- 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
index04aade9e0a4d..3dbbc638e9a9100644drivers/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
śr., 29 sty 2020 o 13:30 Axel Lin <[email protected]> napisał(a):
Quoted 30 lines
They are defined in
gpio/driver.hnow.Signed-off-by Axel Lin <[email protected]>--- drivers/gpio/gpio-bd71828.c | 10 ---------- 1 file changed, 10 deletions(-)drivers/gpio/gpio-bd71828.c +0
-11@@ -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