]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/stm: ltdc: fix various coding-style warnings
authorYannick Fertre <yannick.fertre@foss.st.com>
Fri, 3 Jun 2022 13:43:34 +0000 (15:43 +0200)
committerPhilippe Cornu <philippe.cornu@foss.st.com>
Mon, 27 Jun 2022 13:53:49 +0000 (15:53 +0200)
Fix issues reported by checkpatch.pl:
- Braces {} should be used on all arms
- Blank lines

Signed-off-by: Yannick Fertre <yannick.fertre@foss.st.com>
Acked-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Signed-off-by: Philippe Cornu <philippe.cornu@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220603134334.592805-1-yannick.fertre@foss.st.com
drivers/gpu/drm/stm/ltdc.c

index 703993930a8d4b2852d73a1a65f4f7a08c91f42e..18149ca1519b71c75be139a0b47bc79916053d83 100644 (file)
@@ -911,9 +911,9 @@ static void ltdc_crtc_mode_set_nofb(struct drm_crtc *crtc)
                drm_connector_list_iter_end(&iter);
        }
 
-       if (bridge && bridge->timings)
+       if (bridge && bridge->timings) {
                bus_flags = bridge->timings->input_bus_flags;
-       else if (connector) {
+       else if (connector) {
                bus_flags = connector->display_info.bus_flags;
                if (connector->display_info.num_bus_formats)
                        bus_formats = connector->display_info.bus_formats[0];
@@ -1920,7 +1920,6 @@ int ltdc_load(struct drm_device *ddev)
                        DRM_ERROR("Failed to register LTDC interrupt\n");
                        goto err;
                }
-
        }
 
        crtc = devm_kzalloc(dev, sizeof(*crtc), GFP_KERNEL);