summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-18 15:55:36 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-05-21 16:52:34 +0200
commit555f100cb85347dd84ab2d89cc0cdf5f5f70c1dd (patch)
treedd18145f9f66b6733a02c90e4f965f53adc845dd /rust/zerocopy/src/pointer
parent52be520ca9efd41d5fb06b172489c13ceb68dbc0 (diff)
usb: misc: Use named initializers for struct i2c_device_id
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. While touching all these arrays, unify usage of whitespace in the list terminator. 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> Reviewed-by: Richard Leitner <richard.leitner@linux.dev> Link: https://patch.msgid.link/20260518135536.781168-2-u.kleine-koenig@baylibre.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/zerocopy/src/pointer')
0 files changed, 0 insertions, 0 deletions