]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: panel: Logical continuations should be on the previous line
authorSirnam Swetha <theonly.ultimate@gmail.com>
Tue, 27 Oct 2015 09:26:13 +0000 (14:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Oct 2015 22:55:17 +0000 (07:55 +0900)
This patch fixes the checkpatch issue:

CHECK: Logical continuations should be on the previous line

Signed-off-by: Sirnam Swetha <theonly.ultimate@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/panel/panel.c

index 775ad0e40d75c5ea664b61e354dec69b451f74de..79ac19246548afb5a6e5574a97d09dd7cb8ca110 100644 (file)
@@ -1122,8 +1122,8 @@ static inline int handle_lcd_special_code(void)
        case '*':
                /* flash back light using the keypad timer */
                if (scan_timer.function) {
-                       if (lcd.light_tempo == 0
-                                       && ((lcd.flags & LCD_FLAG_L) == 0))
+                       if (lcd.light_tempo == 0 &&
+                           ((lcd.flags & LCD_FLAG_L) == 0))
                                lcd_backlight(1);
                        lcd.light_tempo = FLASH_LIGHT_TEMPO;
                }
@@ -2011,14 +2011,14 @@ static void panel_scan_timer(void)
 
        if (lcd.enabled && lcd.initialized) {
                if (keypressed) {
-                       if (lcd.light_tempo == 0
-                                       && ((lcd.flags & LCD_FLAG_L) == 0))
+                       if (lcd.light_tempo == 0 &&
+                           ((lcd.flags & LCD_FLAG_L) == 0))
                                lcd_backlight(1);
                        lcd.light_tempo = FLASH_LIGHT_TEMPO;
                } else if (lcd.light_tempo > 0) {
                        lcd.light_tempo--;
-                       if (lcd.light_tempo == 0
-                                       && ((lcd.flags & LCD_FLAG_L) == 0))
+                       if (lcd.light_tempo == 0 &&
+                           ((lcd.flags & LCD_FLAG_L) == 0))
                                lcd_backlight(0);
                }
        }