[PATCH] drm/tiny: pixpaper: Unify spi_device_id table style
Krzysztof Kozlowski <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.comp.video.dri.devel |
|---|---|
| Message-ID | <[email protected]> |
Common style of all xxx_device_id tables is one device entry per line, to make reading and grepping easier. Unify the style with the rest of the Linux kernel, while also adding recently encouraged named initializer. Signed-off-by: Krzysztof Kozlowski <[email protected]> --- drivers/gpu/drm/tiny/pixpaper.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/pixpaper.c b/drivers/gpu/drm/tiny/pixpaper.c index b69e7c30607e..ce77c92c8524 100644 --- a/drivers/gpu/drm/tiny/pixpaper.c +++ b/drivers/gpu/drm/tiny/pixpaper.c @@ -1140,7 +1140,10 @@ static void pixpaper_remove(struct spi_device *spi) drm_atomic_helper_shutdown(&panel->drm); } -static const struct spi_device_id pixpaper_ids[] = { { "pixpaper", 0 }, {} }; +static const struct spi_device_id pixpaper_ids[] = { + { .name = "pixpaper" }, + { } +}; MODULE_DEVICE_TABLE(spi, pixpaper_ids); static const struct of_device_id pixpaper_dt_ids[] = { -- 2.53.0