diff mbox series

[1/2] leds: lp50xx: Remove an unused field in struct lp50xx_led

Message ID bc2e5e57b93ca0a33bcc84e9bdc89f26fc8f6d57.1714324500.git.christophe.jaillet@wanadoo.fr
State New
Headers show
Series [1/2] leds: lp50xx: Remove an unused field in struct lp50xx_led | expand

Commit Message

Christophe JAILLET April 28, 2024, 5:15 p.m. UTC
In "struct lp50xx_led", the 'bank_modules' field is unused.
Remove it.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Compile tested only.

It was added added in the initial commit 242b81170fb8 ("leds: lp50xx: Add
the LP50XX family of the RGB LED driver") but was never used.
---
 drivers/leds/leds-lp50xx.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Lee Jones May 2, 2024, 5:11 p.m. UTC | #1
On Sun, 28 Apr 2024 19:15:24 +0200, Christophe JAILLET wrote:
> In "struct lp50xx_led", the 'bank_modules' field is unused.
> Remove it.
> 
> Found with cppcheck, unusedStructMember.
> 
> 

Applied, thanks!

[1/2] leds: lp50xx: Remove an unused field in struct lp50xx_led
      commit: 221db0183bebbee146922b5816419bdc9b5425ff
[2/2] leds: lp50xx: Remove an unused field in struct lp50xx
      commit: dd66d058565a705980e6d55bd6592958531221b9

--
Lee Jones [李琼斯]
diff mbox series

Patch

diff --git a/drivers/leds/leds-lp50xx.c b/drivers/leds/leds-lp50xx.c
index 68c4d9967d68..407eddcf17c0 100644
--- a/drivers/leds/leds-lp50xx.c
+++ b/drivers/leds/leds-lp50xx.c
@@ -265,7 +265,6 @@  static const struct lp50xx_chip_info lp50xx_chip_info_tbl[] = {
 struct lp50xx_led {
 	struct led_classdev_mc mc_cdev;
 	struct lp50xx *priv;
-	unsigned long bank_modules;
 	u8 ctrl_bank_enabled;
 	int led_number;
 };