[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <bc2e5e57b93ca0a33bcc84e9bdc89f26fc8f6d57.1714324500.git.christophe.jaillet@wanadoo.fr>
Date: Sun, 28 Apr 2024 19:15:24 +0200
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
To: Pavel Machek <pavel@....cz>,
Lee Jones <lee@...nel.org>
Cc: linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
linux-leds@...r.kernel.org
Subject: [PATCH 1/2] leds: lp50xx: Remove an unused field in struct lp50xx_led
In "struct lp50xx_led", the 'bank_modules' field is unused.
Remove it.
Found with cppcheck, unusedStructMember.
Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.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(-)
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;
};
--
2.44.0
Powered by blists - more mailing lists