diff options
| author | Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> | 2026-10-27 11:48:54 +0100 |
|---|---|---|
| committer | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-11-05 13:23:53 +0100 |
| commit | 7c01eb6861833cfb9d00673fbf8aef0b3e330dbe (patch) | |
| tree | 1bcaa5f6d4c7474bb2d3009dcc61391ad24a8358 /scripts | |
| parent | 7b86d1e3c33b95a85a5a3e6f72afdcc2ff717e0d (diff) | |
| download | linux-next-7c01eb6861833cfb9d00673fbf8aef0b3e330dbe.tar.gz linux-next-7c01eb6861833cfb9d00673fbf8aef0b3e330dbe.zip | |
gpio: virtio: Use a named initializer for virtio_device_id array
While being less compact, using named initializers allows to more easily
see which members of the structs are assigned which value without having
to lookup the declaration of the struct. And it's also more robust
against changes to the struct definition.
This patch doesn't modify the compiled array, only its representation in
source form benefits.
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Acked-by: Alan Borzeszkowski <alan.borzeszkowski@linux.intel.com>
Link: https://patch.msgid.link/cover.1793097104.git.u.kleine-koenig@baylibre.com
Link: https://patch.msgid.link/0ff54324a8cdb1f036bd01f05dfaff75512d8abe.1793097104.git.u.kleine-koenig@baylibre.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
