]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/solomon: Enforce one assignment per line
authorIker Pedrosa <ikerpedrosam@gmail.com>
Sat, 20 Sep 2025 09:45:45 +0000 (11:45 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Fri, 26 Sep 2025 13:04:46 +0000 (15:04 +0200)
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>
drivers/gpu/drm/solomon/ssd130x.c

index 95cae4978f086d5742ec60e3a7c7978369bc0de5..7e2e69ce890f786b4a913e5e4aa4b378b8e8e624 100644 (file)
@@ -1867,10 +1867,14 @@ static int ssd130x_init_modeset(struct ssd130x_device *ssd130x)
 
        mode->type = DRM_MODE_TYPE_DRIVER;
        mode->clock = 1;
-       mode->hdisplay = mode->htotal = ssd130x->width;
-       mode->hsync_start = mode->hsync_end = ssd130x->width;
-       mode->vdisplay = mode->vtotal = ssd130x->height;
-       mode->vsync_start = mode->vsync_end = ssd130x->height;
+       mode->hdisplay = ssd130x->width;
+       mode->htotal = ssd130x->width;
+       mode->hsync_start = ssd130x->width;
+       mode->hsync_end = ssd130x->width;
+       mode->vdisplay = ssd130x->height;
+       mode->vtotal = ssd130x->height;
+       mode->vsync_start = ssd130x->height;
+       mode->vsync_end = ssd130x->height;
        mode->width_mm = 27;
        mode->height_mm = 27;