Unverified Commit aea07a98 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown
Browse files

regulator: 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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://msgid.link/r/20240513080525.2353168-2-u.kleine-koenig@pengutronix.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1613e604
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -202,8 +202,8 @@ static int da9210_i2c_probe(struct i2c_client *i2c)
}

static const struct i2c_device_id da9210_i2c_id[] = {
	{"da9210", 0},
	{},
	{ "da9210" },
	{}
};

MODULE_DEVICE_TABLE(i2c, da9210_i2c_id);
+1 −1
Original line number Diff line number Diff line
@@ -439,7 +439,7 @@ static int lp3971_i2c_probe(struct i2c_client *i2c)
}

static const struct i2c_device_id lp3971_i2c_id[] = {
	{ "lp3971", 0 },
	{ "lp3971" },
	{ }
};
MODULE_DEVICE_TABLE(i2c, lp3971_i2c_id);
+1 −1
Original line number Diff line number Diff line
@@ -537,7 +537,7 @@ static int lp3972_i2c_probe(struct i2c_client *i2c)
}

static const struct i2c_device_id lp3972_i2c_id[] = {
	{ "lp3972", 0 },
	{ "lp3972" },
	{ }
};
MODULE_DEVICE_TABLE(i2c, lp3972_i2c_id);
+1 −1
Original line number Diff line number Diff line
@@ -430,7 +430,7 @@ static void lp8755_remove(struct i2c_client *client)
}

static const struct i2c_device_id lp8755_id[] = {
	{LP8755_NAME, 0},
	{ LP8755_NAME },
	{}
};

+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ static int max1586_pmic_probe(struct i2c_client *client)
}

static const struct i2c_device_id max1586_id[] = {
	{ "max1586", 0 },
	{ "max1586" },
	{ }
};
MODULE_DEVICE_TABLE(i2c, max1586_id);
Loading