[PATCH] ARM: s3c: Drop explicit initialization of struct i2c_device_id::driver_data to 0

Uwe Kleine-König u.kleine-koenig at baylibre.com
Mon Jul 8 08:25:30 PDT 2024


The wlf-gf-module driver doesn'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.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig at baylibre.com>
---
 arch/arm/mach-s3c/mach-crag6410-module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-s3c/mach-crag6410-module.c b/arch/arm/mach-s3c/mach-crag6410-module.c
index 2de1a89f6e99..4ffcf024b09d 100644
--- a/arch/arm/mach-s3c/mach-crag6410-module.c
+++ b/arch/arm/mach-s3c/mach-crag6410-module.c
@@ -446,7 +446,7 @@ static int wlf_gf_module_probe(struct i2c_client *i2c)
 }
 
 static const struct i2c_device_id wlf_gf_module_id[] = {
-	{ "wlf-gf-module", 0 },
+	{ "wlf-gf-module" },
 	{ }
 };
 

base-commit: 0b58e108042b0ed28a71cd7edf5175999955b233
-- 
2.43.0




More information about the linux-arm-kernel mailing list