diff options
| author | Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> | 2026-07-17 16:50:47 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-31 14:20:49 +0200 |
| commit | 4eb0946caf764350e0787fc6fbefe260ed949873 (patch) | |
| tree | 7e588c858d97610d03bf8f4c58f41be128380e48 | |
| parent | b187532ac6dba56df9367ae7698001b4623d4cba (diff) | |
| download | linux-next-4eb0946caf764350e0787fc6fbefe260ed949873.tar.gz linux-next-4eb0946caf764350e0787fc6fbefe260ed949873.zip | |
misc: Drop unused assignment of spi_device_id driver data
The drivers don't make use of the values that were explicitly assigned
to the .driver_data members. Drop these assignments.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/e2ad3f93b358cc246a64a3d0a7c3f037b2201412.1784299069.git.u.kleine-koenig@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/misc/gehc-achc.c | 4 | ||||
| -rw-r--r-- | drivers/misc/lattice-ecp3-config.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/misc/gehc-achc.c b/drivers/misc/gehc-achc.c index b8fca4d393c6..1abfa6c257de 100644 --- a/drivers/misc/gehc-achc.c +++ b/drivers/misc/gehc-achc.c @@ -538,8 +538,8 @@ static int gehc_achc_probe(struct spi_device *spi) } static const struct spi_device_id gehc_achc_id[] = { - { "ge,achc", 0 }, - { "achc", 0 }, + { "ge,achc" }, + { "achc" }, { } }; MODULE_DEVICE_TABLE(spi, gehc_achc_id); diff --git a/drivers/misc/lattice-ecp3-config.c b/drivers/misc/lattice-ecp3-config.c index 93949df3bcff..2b93d5660bf2 100644 --- a/drivers/misc/lattice-ecp3-config.c +++ b/drivers/misc/lattice-ecp3-config.c @@ -219,8 +219,8 @@ static void lattice_ecp3_remove(struct spi_device *spi) } static const struct spi_device_id lattice_ecp3_id[] = { - { "ecp3-17", 0 }, - { "ecp3-35", 0 }, + { "ecp3-17" }, + { "ecp3-35" }, { } }; MODULE_DEVICE_TABLE(spi, lattice_ecp3_id); |
