Commit 007afa8b authored by Gargi Sharma's avatar Gargi Sharma Committed by Greg Kroah-Hartman

staging: fbtft: move && operator for logical continuation

Move && up to the previous line, to fix the checkpatch issue Logical
continuations should be on the previous line.
Signed-off-by: default avatarGargi Sharma <gs051095@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3b13abf5
...@@ -25,8 +25,8 @@ static void register_onboard_backlight(struct fbtft_par *par); ...@@ -25,8 +25,8 @@ static void register_onboard_backlight(struct fbtft_par *par);
static int init_display(struct fbtft_par *par) static int init_display(struct fbtft_par *par)
{ {
if (par->pdata if (par->pdata &&
&& par->pdata->display.backlight == FBTFT_ONBOARD_BACKLIGHT) { par->pdata->display.backlight == FBTFT_ONBOARD_BACKLIGHT) {
/* module uses onboard GPIO for panel power */ /* module uses onboard GPIO for panel power */
par->fbtftops.register_backlight = register_onboard_backlight; par->fbtftops.register_backlight = register_onboard_backlight;
} }
...@@ -189,8 +189,8 @@ static int update_onboard_backlight(struct backlight_device *bd) ...@@ -189,8 +189,8 @@ static int update_onboard_backlight(struct backlight_device *bd)
"%s: power=%d, fb_blank=%d\n", "%s: power=%d, fb_blank=%d\n",
__func__, bd->props.power, bd->props.fb_blank); __func__, bd->props.power, bd->props.fb_blank);
on = (bd->props.power == FB_BLANK_UNBLANK) on = (bd->props.power == FB_BLANK_UNBLANK) &&
&& (bd->props.fb_blank == FB_BLANK_UNBLANK); (bd->props.fb_blank == FB_BLANK_UNBLANK);
/* Onboard backlight connected to GPIO0 on SSD1351, GPIO1 unused */ /* Onboard backlight connected to GPIO0 on SSD1351, GPIO1 unused */
write_reg(par, 0xB5, on ? 0x03 : 0x02); write_reg(par, 0xB5, on ? 0x03 : 0x02);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment