Skip to content

Commit 38bcb51

Browse files
Jiapeng Chongpavelmachek
authored andcommitted
leds-pca955x: Remove the unused function pca95xx_num_led_regs()
The function pca95xx_num_led_regs() is defined in the leds-pca955x.c file, but not called elsewhere, so delete this unused function. drivers/leds/leds-pca955x.c:149:19: warning: unused function 'pca95xx_num_led_regs'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2411 Reported-by: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
1 parent 9abf231 commit 38bcb51

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/leds/leds-pca955x.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,6 @@ static inline int pca95xx_num_input_regs(int bits)
145145
return (bits + 7) / 8;
146146
}
147147

148-
/* 4 bits per LED selector register */
149-
static inline int pca95xx_num_led_regs(int bits)
150-
{
151-
return (bits + 3) / 4;
152-
}
153-
154148
/*
155149
* Return an LED selector register value based on an existing one, with
156150
* the appropriate 2-bit state value set for the given LED number (0-3).

0 commit comments

Comments
 (0)