Skip to content

Commit

Permalink
gpio: it87: remove unused code
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
  • Loading branch information
Jiapeng Chong authored and brgl committed May 5, 2021
1 parent abd7a8e commit 5fe7067
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/gpio/gpio-it87.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5fe7067

Please sign in to comment.