summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-lp8501.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-05-22 18:53:59 +0200
committerLee Jones <lee@kernel.org>2024-06-21 11:57:11 +0100
commitc0e3d2beeb031589be43055ece7cd33ea4800b98 (patch)
tree383becd4fabd8de85467af913f691155fdb8456a /drivers/leds/leds-lp8501.c
parentb1bbd20f35e19774ea01989320495e09ac44fba3 (diff)
downloadlwn-c0e3d2beeb031589be43055ece7cd33ea4800b98.tar.gz
lwn-c0e3d2beeb031589be43055ece7cd33ea4800b98.zip
leds: Drop explicit initialization of struct i2c_device_id::driver_data to 0
These drivers don't use the driver_data member of struct i2c_device_id, so don't explicitly initialize this member. This prepares putting driver_data in an anonymous union which requires either no initialization or named designators. But it's also a nice cleanup on its own. While add it, also remove commas after the sentinel entries. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20240522165358.62238-2-u.kleine-koenig@pengutronix.de Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds/leds-lp8501.c')
-rw-r--r--drivers/leds/leds-lp8501.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-lp8501.c b/drivers/leds/leds-lp8501.c
index ac50aa88939a..68b5c7ae31b9 100644
--- a/drivers/leds/leds-lp8501.c
+++ b/drivers/leds/leds-lp8501.c
@@ -375,7 +375,7 @@ static void lp8501_remove(struct i2c_client *client)
}
static const struct i2c_device_id lp8501_id[] = {
- { "lp8501", 0 },
+ { "lp8501" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lp8501_id);