staging: sm750: Fix switch-case indentation
authorIoana Ciornei <ciorneiioana@gmail.com>
Wed, 11 Mar 2015 02:35:04 +0000 (04:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Mar 2015 17:41:14 +0000 (18:41 +0100)
Remove switch cases indentation in order to follow the Linux coding style.

Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c

index aa0888c..23d67b3 100644 (file)
@@ -334,41 +334,41 @@ static int lynxfb_ops_set_par(struct fb_info * info)
         * */
 
        switch(var->bits_per_pixel){
-               case 8:
-                       fix->visual = FB_VISUAL_PSEUDOCOLOR;
-                       var->red.offset = 0;
-                       var->red.length = 8;
-                       var->green.offset = 0;
-                       var->green.length = 8;
-                       var->blue.offset = 0;
-                       var->blue.length = 8;
-                       var->transp.length = 0;
-                       var->transp.offset = 0;
-                       break;
-               case 16:
-                       var->red.offset = 11;
-                       var->red.length = 5;
-                       var->green.offset = 5;
-                       var->green.length = 6;
-                       var->blue.offset = 0;
-                       var->blue.length = 5;
-                       var->transp.length = 0;
-                       var->transp.offset = 0;
-                       fix->visual = FB_VISUAL_TRUECOLOR;
-                       break;
-               case 24:
-               case 32:
-                       var->red.offset = 16;
-                       var->red.length = 8;
-                       var->green.offset = 8;
-                       var->green.length = 8;
-                       var->blue.offset = 0 ;
-                       var->blue.length = 8;
-                       fix->visual = FB_VISUAL_TRUECOLOR;
-                       break;
-               default:
-                       ret = -EINVAL;
-                       break;
+       case 8:
+               fix->visual = FB_VISUAL_PSEUDOCOLOR;
+               var->red.offset = 0;
+               var->red.length = 8;
+               var->green.offset = 0;
+               var->green.length = 8;
+               var->blue.offset = 0;
+               var->blue.length = 8;
+               var->transp.length = 0;
+               var->transp.offset = 0;
+               break;
+       case 16:
+               var->red.offset = 11;
+               var->red.length = 5;
+               var->green.offset = 5;
+               var->green.length = 6;
+               var->blue.offset = 0;
+               var->blue.length = 5;
+               var->transp.length = 0;
+               var->transp.offset = 0;
+               fix->visual = FB_VISUAL_TRUECOLOR;
+               break;
+       case 24:
+       case 32:
+               var->red.offset = 16;
+               var->red.length = 8;
+               var->green.offset = 8;
+               var->green.length = 8;
+               var->blue.offset = 0 ;
+               var->blue.length = 8;
+               fix->visual = FB_VISUAL_TRUECOLOR;
+               break;
+       default:
+               ret = -EINVAL;
+               break;
        }
        var->height = var->width = -1;
        var->accel_flags = 0;/*FB_ACCELF_TEXT;*/
@@ -533,53 +533,53 @@ static int lynxfb_ops_check_var(struct fb_var_screeninfo* var,struct fb_info* in
 
 
        switch(var->bits_per_pixel){
-               case 8:
-               case 16:
-               case 24: /* support 24 bpp for only lynx712/722/720 */
-               case 32:
-                       break;
-               default:
-                       pr_err("bpp %d not supported\n",var->bits_per_pixel);
-                       ret = -EINVAL;
-                       goto exit;
+       case 8:
+       case 16:
+       case 24: /* support 24 bpp for only lynx712/722/720 */
+       case 32:
+               break;
+       default:
+               pr_err("bpp %d not supported\n",var->bits_per_pixel);
+               ret = -EINVAL;
+               goto exit;
        }
 
        switch(var->bits_per_pixel){
-               case 8:
-                       info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
-                       var->red.offset = 0;
-                       var->red.length = 8;
-                       var->green.offset = 0;
-                       var->green.length = 8;
-                       var->blue.offset = 0;
-                       var->blue.length = 8;
-                       var->transp.length = 0;
-                       var->transp.offset = 0;
-                       break;
-               case 16:
-                       var->red.offset = 11;
-                       var->red.length = 5;
-                       var->green.offset = 5;
-                       var->green.length = 6;
-                       var->blue.offset = 0;
-                       var->blue.length = 5;
-                       var->transp.length = 0;
-                       var->transp.offset = 0;
-                       info->fix.visual = FB_VISUAL_TRUECOLOR;
-                       break;
-               case 24:
-               case 32:
-                       var->red.offset = 16;
-                       var->red.length = 8;
-                       var->green.offset = 8;
-                       var->green.length = 8;
-                       var->blue.offset = 0 ;
-                       var->blue.length = 8;
-                       info->fix.visual = FB_VISUAL_TRUECOLOR;
-                       break;
-               default:
-                       ret = -EINVAL;
-                       break;
+       case 8:
+               info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
+               var->red.offset = 0;
+               var->red.length = 8;
+               var->green.offset = 0;
+               var->green.length = 8;
+               var->blue.offset = 0;
+               var->blue.length = 8;
+               var->transp.length = 0;
+               var->transp.offset = 0;
+               break;
+       case 16:
+               var->red.offset = 11;
+               var->red.length = 5;
+               var->green.offset = 5;
+               var->green.length = 6;
+               var->blue.offset = 0;
+               var->blue.length = 5;
+               var->transp.length = 0;
+               var->transp.offset = 0;
+               info->fix.visual = FB_VISUAL_TRUECOLOR;
+               break;
+       case 24:
+       case 32:
+               var->red.offset = 16;
+               var->red.length = 8;
+               var->green.offset = 8;
+               var->green.length = 8;
+               var->blue.offset = 0 ;
+               var->blue.length = 8;
+               info->fix.visual = FB_VISUAL_TRUECOLOR;
+               break;
+       default:
+               ret = -EINVAL;
+               break;
        }
        var->height = var->width = -1;
        var->accel_flags = 0;/*FB_ACCELF_TEXT;*/