mfd: Drop unused assignment of spi_device_id driver data

The drivers explicitly set the .driver_data member of struct
spi_device_id to zero without relying on that value. Drop these unused
assignments.

While touching these arrays use named initializers for .name.

This patch doesn't modify the compiled arrays, only their representation
in source form benefits. The former was confirmed with x86 and arm64
builds.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/15dc05c1a49f79b6cb43684d8bcf60adcd1be7de.1783003256.git.u.kleine-koenig@baylibre.com
Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
Uwe Kleine-König (The Capable Hub)
2026-07-30 14:32:53 +01:00
committed by Lee Jones
parent abf98c166e
commit e9929b4b61
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ static int ocelot_spi_probe(struct spi_device *spi)
}
static const struct spi_device_id ocelot_spi_ids[] = {
{ "vsc7512", 0 },
{ .name = "vsc7512" },
{ }
};
MODULE_DEVICE_TABLE(spi, ocelot_spi_ids);
+1 -1
View File
@@ -104,7 +104,7 @@ static const struct of_device_id rk8xx_spi_of_match[] = {
MODULE_DEVICE_TABLE(of, rk8xx_spi_of_match);
static const struct spi_device_id rk8xx_spi_id_table[] = {
{ "rk806", 0 },
{ .name = "rk806" },
{ }
};
MODULE_DEVICE_TABLE(spi, rk8xx_spi_id_table);
+1 -1
View File
@@ -43,7 +43,7 @@ static int tps65912_spi_probe(struct spi_device *spi)
}
static const struct spi_device_id tps65912_spi_id_table[] = {
{ "tps65912", 0 },
{ .name = "tps65912" },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(spi, tps65912_spi_id_table);