Make suggested modification from checkpatch in reference
to: CHECK: Alignment should match open parenthesis

Signed-off-by: Walt Feasel <waltfea...@gmail.com>
---
 drivers/staging/xgifb/XGI_main_26.c | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/drivers/staging/xgifb/XGI_main_26.c 
b/drivers/staging/xgifb/XGI_main_26.c
index 34fc5ce..96936e3 100644
--- a/drivers/staging/xgifb/XGI_main_26.c
+++ b/drivers/staging/xgifb/XGI_main_26.c
@@ -1156,7 +1156,7 @@ static int XGIfb_setcolreg(unsigned int regno, unsigned 
int red,
 /* ----------- FBDev related routines for all series ---------- */
 
 static int XGIfb_get_fix(struct fb_fix_screeninfo *fix, int con,
-               struct fb_info *info)
+                        struct fb_info *info)
 {
        struct xgifb_video_info *xgifb_info = info->par;
 
@@ -1250,10 +1250,10 @@ static int XGIfb_check_var(struct fb_var_screeninfo 
*var, struct fb_info *info)
 
        search_idx = 0;
        while ((XGIbios_mode[search_idx].mode_no != 0) &&
-               (XGIbios_mode[search_idx].xres <= var->xres)) {
+              (XGIbios_mode[search_idx].xres <= var->xres)) {
                if ((XGIbios_mode[search_idx].xres == var->xres) &&
-                       (XGIbios_mode[search_idx].yres == var->yres) &&
-                       (XGIbios_mode[search_idx].bpp == var->bits_per_pixel)) {
+                   (XGIbios_mode[search_idx].yres == var->yres) &&
+                   (XGIbios_mode[search_idx].bpp == var->bits_per_pixel)) {
                        if (XGIfb_validate_mode(xgifb_info, search_idx) > 0) {
                                found_mode = 1;
                                break;
@@ -1263,8 +1263,8 @@ static int XGIfb_check_var(struct fb_var_screeninfo *var, 
struct fb_info *info)
        }
 
        if (!found_mode) {
-               pr_err("%dx%dx%d is no valid mode\n",
-                       var->xres, var->yres, var->bits_per_pixel);
+               pr_err("%dx%dx%d is no valid mode\n", var->xres, var->yres,
+                      var->bits_per_pixel);
                search_idx = 0;
                while (XGIbios_mode[search_idx].mode_no != 0) {
                        if ((var->xres <= XGIbios_mode[search_idx].xres) &&
@@ -1282,12 +1282,12 @@ static int XGIfb_check_var(struct fb_var_screeninfo 
*var, struct fb_info *info)
                if (found_mode) {
                        var->xres = XGIbios_mode[search_idx].xres;
                        var->yres = XGIbios_mode[search_idx].yres;
-                       pr_debug("Adapted to mode %dx%dx%d\n",
-                               var->xres, var->yres, var->bits_per_pixel);
+                       pr_debug("Adapted to mode %dx%dx%d\n", var->xres,
+                                var->yres, var->bits_per_pixel);
 
                } else {
                        pr_err("Failed to find similar mode to %dx%dx%d\n",
-                               var->xres, var->yres, var->bits_per_pixel);
+                              var->xres, var->yres, var->bits_per_pixel);
                        return -EINVAL;
                }
        }
@@ -1318,8 +1318,7 @@ static int XGIfb_check_var(struct fb_var_screeninfo *var, 
struct fb_info *info)
        return 0;
 }
 
-static int XGIfb_pan_display(struct fb_var_screeninfo *var,
-               struct fb_info *info)
+static int XGIfb_pan_display(struct fb_var_screeninfo *var, struct fb_info 
*info)
 {
        int err;
 
@@ -1459,7 +1458,7 @@ static int XGIfb_get_dram_size(struct xgifb_video_info 
*xgifb_info)
        xgifb_info->video_size = xgifb_info->video_size * ChannelNum;
 
        pr_info("SR14=%x DramSzie %x ChannelNum %x\n",
-              reg,
+               reg,
               xgifb_info->video_size, ChannelNum);
        return 0;
 }
-- 
2.1.4

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to