Skip to contentSkip to conversation

leds-pca955x: Remove the unused function pca95xx_num_led_regs()

PATCH Applied Jiapeng Chong 2 participants 2 messages Oct 17, 2022 – Oct 21, 2022 LED

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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'.

---
 drivers/leds/leds-pca955x.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/leds/leds-pca955x.c +0 -6
index 81aaf21212d7..33ec4543fb4f 100644
@@ -145,12 +145,6 @@ static inline int pca95xx_num_input_regs(int bits)
 	return (bits + 7) / 8;
 }
 
-/* 4 bits per LED selector register */
-static inline int pca95xx_num_led_regs(int bits)
-{
-	return (bits + 3)  / 4;
-}
-
 /*
  * Return an LED selector register value based on an existing one, with
  * the appropriate 2-bit state value set for the given LED number (0-3).
Signature · 1 line
2.20.1.7.g153144c
Applied
#1 lore raw

Hi!

Quoted 4 lines

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'.

Thank you, applied.

Best regards,
Pavel

Quoted 14 lines

+++ b/drivers/leds/leds-pca955x.c

drivers/leds/leds-pca955x.c +0 -6
@@ -145,12 +145,6 @@ static inline int pca95xx_num_input_regs(int bits)
 	return (bits + 7) / 8;
 }
 
-/* 4 bits per LED selector register */
-static inline int pca95xx_num_led_regs(int bits)
-{
-	return (bits + 3)  / 4;
-}
-
 /*
  * Return an LED selector register value based on an existing one, with
  * the appropriate 2-bit state value set for the given LED number (0-3).
Signature · 1 line
People of Russia, stop Putin before his war on Ukraine escalates.