gpio: gpio-it87: remove unused code
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].
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/gpio/gpio-it87.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/gpio/gpio-it87.c +0 -8
@@ -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
Quoted 7 lines · Jiapeng Chong
Fix the following clang warning:
drivers/gpio/gpio-it87.c:128:20: warning: unused function 'superio_outw' [-Wunused-function].Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Acked-by Simon Guinot <[email protected]>
Quoted 25 lines
--- drivers/gpio/gpio-it87.c | 8 -------- 1 file changed, 8 deletions(-)drivers/gpio/gpio-it87.c +0
-8@@ -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
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].Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>Acked-by Simon Guinot <[email protected]>Quoted 12 lines
--- drivers/gpio/gpio-it87.c | 8 -------- 1 file changed, 8 deletions(-)drivers/gpio/gpio-it87.c +0
-0@@ -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