Skip to content

Commit c652cfd

Browse files
ukleinekkrzk
authored andcommitted
ARM: s3c: Drop explicit initialization of struct i2c_device_id::driver_data to 0
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@baylibre.com> Link: https://lore.kernel.org/r/20240708152530.19306-2-u.kleine-koenig@baylibre.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent 8400291 commit c652cfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/arm/mach-s3c/mach-crag6410-module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ static int wlf_gf_module_probe(struct i2c_client *i2c)
446446
}
447447

448448
static const struct i2c_device_id wlf_gf_module_id[] = {
449-
{ "wlf-gf-module", 0 },
449+
{ "wlf-gf-module" },
450450
{ }
451451
};
452452

0 commit comments

Comments
 (0)