Skip to content

Commit 4436f48

Browse files
krzkBartosz Golaszewski
authored andcommitted
gpio: tb10x: Drop unused tb10x_set_bits() function
tb10x_set_bits() is not referenced anywhere leading to W=1 warning: gpio-tb10x.c:59:20: error: unused function 'tb10x_set_bits' [-Werror,-Wunused-function] After its removal, tb10x_reg_write() becomes unused as well. Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 5232334 commit 4436f48

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

drivers/gpio/gpio-tb10x.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,6 @@ static inline u32 tb10x_reg_read(struct tb10x_gpio *gpio, unsigned int offs)
5050
return ioread32(gpio->base + offs);
5151
}
5252

53-
static inline void tb10x_reg_write(struct tb10x_gpio *gpio, unsigned int offs,
54-
u32 val)
55-
{
56-
iowrite32(val, gpio->base + offs);
57-
}
58-
59-
static inline void tb10x_set_bits(struct tb10x_gpio *gpio, unsigned int offs,
60-
u32 mask, u32 val)
61-
{
62-
u32 r;
63-
64-
guard(gpio_generic_lock_irqsave)(&gpio->chip);
65-
66-
r = tb10x_reg_read(gpio, offs);
67-
r = (r & ~mask) | (val & mask);
68-
69-
tb10x_reg_write(gpio, offs, r);
70-
}
71-
7253
static int tb10x_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
7354
{
7455
struct tb10x_gpio *tb10x_gpio = gpiochip_get_data(chip);

0 commit comments

Comments
 (0)