Skip to contentSkip to conversation

gpio: gpio-it87: remove unused code

PATCH In review Jiapeng Chong 3 participants 3 messages Apr 6, 2021 – Apr 9, 2021 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: gpio-it87: remove unused code

Fix the following clang warning:

drivers/gpio/gpio-it87.c:128:20: warning: unused function 'superio_outw' [-Wunused-function].

---
 drivers/gpio/gpio-it87.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/gpio/gpio-it87.c +0 -8
index 8f1be34..f332341 100644
@@ -125,14 +125,6 @@ static inline int superio_inw(int reg)
 	return val;
 }
 
-static inline void superio_outw(int val, int reg)
-{
-	outb(reg++, REG);
-	outb(val >> 8, VAL);
-	outb(reg, REG);
-	outb(val, VAL);
-}
-
 static inline void superio_set_mask(int mask, int reg)
 {
 	u8 curr_val = superio_inb(reg);
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jiapeng Chong

Fix the following clang warning:

drivers/gpio/gpio-it87.c:128:20: warning: unused function 'superio_outw' [-Wunused-function].

Quoted 25 lines
---
 drivers/gpio/gpio-it87.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/gpio/gpio-it87.c +0 -8
index 8f1be34..f332341 100644
@@ -125,14 +125,6 @@ static inline int superio_inw(int reg)
 	return val;
 }
 
-static inline void superio_outw(int val, int reg)
-{
-	outb(reg++, REG);
-	outb(val >> 8, VAL);
-	outb(reg, REG);
-	outb(val, VAL);
-}
-
 static inline void superio_set_mask(int mask, int reg)
 {
 	u8 curr_val = superio_inb(reg);
Signature · 1 line
1.8.3.1
#2 lore raw
Quoted 24 lines · Simon Guinot
Quoted 7 lines · Jiapeng Chong

Fix the following clang warning:

drivers/gpio/gpio-it87.c:128:20: warning: unused function 'superio_outw' [-Wunused-function].

Quoted 12 lines
---
 drivers/gpio/gpio-it87.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/gpio/gpio-it87.c +0 -0
index 8f1be34..f332341 100644
@@ -125,14 +125,6 @@ static inline int superio_inw(int reg)
      return val;
 }
 
Quoted 13 lines
Quoted 12 lines
drivers/gpio/gpio-it87.c +0 -9
-static inline void superio_outw(int val, int reg)
-{
-     outb(reg++, REG);
-     outb(val >> 8, VAL);
-     outb(reg, REG);
-     outb(val, VAL);
-}
-
 static inline void superio_set_mask(int mask, int reg)
 {
      u8 curr_val = superio_inb(reg);
--
Quoted 1 line

1.8.3.1

Patch applied, thanks!

Bartosz