Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/solomon: Enforce one assignment per line

The code contains several instances of chained assignments. The Linux
kernel coding style generally favors clarity and simplicity over terse
syntax. Refactor the code to use a separate line for each assignment.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Iker Pedrosa <ikerpedrosam@gmail.com>
Link: https://lore.kernel.org/r/20250920-improve-ssd130x-v2-5-77721e87ae08@gmail.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>

authored by

Iker Pedrosa and committed by
Javier Martinez Canillas
a7493ff9 90905f37

+8 -4
+8 -4
drivers/gpu/drm/solomon/ssd130x.c
··· 1867 1867 1868 1868 mode->type = DRM_MODE_TYPE_DRIVER; 1869 1869 mode->clock = 1; 1870 - mode->hdisplay = mode->htotal = ssd130x->width; 1871 - mode->hsync_start = mode->hsync_end = ssd130x->width; 1872 - mode->vdisplay = mode->vtotal = ssd130x->height; 1873 - mode->vsync_start = mode->vsync_end = ssd130x->height; 1870 + mode->hdisplay = ssd130x->width; 1871 + mode->htotal = ssd130x->width; 1872 + mode->hsync_start = ssd130x->width; 1873 + mode->hsync_end = ssd130x->width; 1874 + mode->vdisplay = ssd130x->height; 1875 + mode->vtotal = ssd130x->height; 1876 + mode->vsync_start = ssd130x->height; 1877 + mode->vsync_end = ssd130x->height; 1874 1878 mode->width_mm = 27; 1875 1879 mode->height_mm = 27; 1876 1880