]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
drm: xilinx: fb: Fix styles
authorHyun Kwon <hyun.kwon@xilinx.com>
Thu, 10 Aug 2017 18:26:10 +0000 (11:26 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 15 Aug 2017 10:37:21 +0000 (12:37 +0200)
Fix checkpatch warnings such as alignement and extra blank lines:

CHECK: Alignment should match open parenthesis
+       DRM_DEBUG_KMS("surface width(%d), height(%d) and bpp(%d)\n",
+                       sizes->surface_width, sizes->surface_height,

CHECK: Blank lines aren't necessary before a close brace '}'
+
+       }

CHECK: Please don't use multiple blank lines
+
+

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/gpu/drm/xilinx/xilinx_drm_fb.c

index b842adde6dae6d833c3e0f261d92bfd5e80ab0d4..f49d99160d7144ac5137f3149e8e5f1cb84d7eff 100644 (file)
@@ -233,8 +233,8 @@ static int xilinx_drm_fbdev_create(struct drm_fb_helper *fb_helper,
        int ret;
 
        DRM_DEBUG_KMS("surface width(%d), height(%d) and bpp(%d)\n",
-                       sizes->surface_width, sizes->surface_height,
-                       sizes->surface_bpp);
+                     sizes->surface_width, sizes->surface_height,
+                     sizes->surface_bpp);
 
        bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8);
 
@@ -351,7 +351,6 @@ xilinx_drm_fb_init(struct drm_device *drm, int preferred_bpp,
        if (ret < 0) {
                DRM_ERROR("Failed to add connectors.\n");
                goto err_drm_fb_helper_fini;
-
        }
 
        drm_helper_disable_unused_functions(drm);
@@ -497,7 +496,6 @@ err_gem_object_unreference:
        return ERR_PTR(ret);
 }
 
-
 /**
  * xilinx_drm_fb_hotplug_event - Poll for hotpulug events
  * @fb_helper: drm_fb_helper struct, may be NULL