Commit b690f5d9 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Douglas Anderson
Browse files

drm: 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.

Reviewed-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Reviewed-by: Liu Ying <victor.liu@nxp.com> # ite-it6263.c
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241204105827.1682632-2-u.kleine-koenig@baylibre.com
parent d4089168
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -793,7 +793,7 @@ static void anx6345_i2c_remove(struct i2c_client *client)
}

static const struct i2c_device_id anx6345_id[] = {
	{ "anx6345", 0 },
	{ "anx6345" },
	{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(i2c, anx6345_id);
+1 −1
Original line number Diff line number Diff line
@@ -2795,7 +2795,7 @@ static void anx7625_i2c_remove(struct i2c_client *client)
}

static const struct i2c_device_id anx7625_id[] = {
	{"anx7625", 0},
	{ "anx7625" },
	{}
};

+1 −1
Original line number Diff line number Diff line
@@ -597,7 +597,7 @@ static const struct of_device_id ch7033_dt_ids[] = {
MODULE_DEVICE_TABLE(of, ch7033_dt_ids);

static const struct i2c_device_id ch7033_ids[] = {
	{ "ch7033", 0 },
	{ "ch7033" },
	{ }
};
MODULE_DEVICE_TABLE(i2c, ch7033_ids);
+1 −1
Original line number Diff line number Diff line
@@ -897,7 +897,7 @@ static const struct of_device_id it6263_of_match[] = {
MODULE_DEVICE_TABLE(of, it6263_of_match);

static const struct i2c_device_id it6263_i2c_ids[] = {
	{ "it6263", 0 },
	{ "it6263" },
	{ }
};
MODULE_DEVICE_TABLE(i2c, it6263_i2c_ids);
+1 −1
Original line number Diff line number Diff line
@@ -3497,7 +3497,7 @@ static void it6505_i2c_remove(struct i2c_client *client)
}

static const struct i2c_device_id it6505_id[] = {
	{ "it6505", 0 },
	{ "it6505" },
	{ }
};

Loading