Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: fbtft: Fix 'line over 80 characters'

This patch fixes the following checkpatch.pl warning
WARNING: line over 80 characters

Signed-off-by: Maninder Singh <maninder.s2@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Maninder Singh and committed by
Greg Kroah-Hartman
1007e613 fbcda650

+20 -11
+20 -11
drivers/staging/fbtft/fbtft-core.c
··· 253 253 "%s: polarity=%d, power=%d, fb_blank=%d\n", 254 254 __func__, polarity, bd->props.power, bd->props.fb_blank); 255 255 256 - if ((bd->props.power == FB_BLANK_UNBLANK) && (bd->props.fb_blank == FB_BLANK_UNBLANK)) 256 + if ((bd->props.power == FB_BLANK_UNBLANK) && 257 + (bd->props.fb_blank == FB_BLANK_UNBLANK)) 257 258 gpio_set_value(par->gpio.led[0], polarity); 258 259 else 259 260 gpio_set_value(par->gpio.led[0], !polarity); ··· 300 299 bl_props.state |= BL_CORE_DRIVER1; 301 300 302 301 bd = backlight_device_register(dev_driver_string(par->info->device), 303 - par->info->device, par, &fbtft_bl_ops, &bl_props); 302 + par->info->device, par, 303 + &fbtft_bl_ops, &bl_props); 304 304 if (IS_ERR(bd)) { 305 305 dev_err(par->info->device, 306 306 "cannot register backlight device (%ld)\n", ··· 352 350 bool timeit = false; 353 351 int ret = 0; 354 352 355 - if (unlikely(par->debug & (DEBUG_TIME_FIRST_UPDATE | DEBUG_TIME_EACH_UPDATE))) { 353 + if (unlikely(par->debug & (DEBUG_TIME_FIRST_UPDATE | 354 + DEBUG_TIME_EACH_UPDATE))) { 356 355 if ((par->debug & DEBUG_TIME_EACH_UPDATE) || 357 - ((par->debug & DEBUG_TIME_FIRST_UPDATE) && !par->first_update_done)) { 356 + ((par->debug & DEBUG_TIME_FIRST_UPDATE) && 357 + !par->first_update_done)) { 358 358 ts_start = ktime_get(); 359 359 timeit = true; 360 360 } ··· 365 361 /* Sanity checks */ 366 362 if (start_line > end_line) { 367 363 dev_warn(par->info->device, 368 - "%s: start_line=%u is larger than end_line=%u. Shouldn't happen, will do full display update\n", 369 - __func__, start_line, end_line); 364 + "%s: start_line=%u is larger than end_line=%u. Shouldn't happen, will do full display update\n", 365 + __func__, start_line, end_line); 370 366 start_line = 0; 371 367 end_line = par->info->var.yres - 1; 372 368 } 373 - if (start_line > par->info->var.yres - 1 || end_line > par->info->var.yres - 1) { 369 + if (start_line > par->info->var.yres - 1 || 370 + end_line > par->info->var.yres - 1) { 374 371 dev_warn(par->info->device, 375 372 "%s: start_line=%u or end_line=%u is larger than max=%d. Shouldn't happen, will do full display update\n", 376 - __func__, start_line, end_line, par->info->var.yres - 1); 373 + __func__, start_line, 374 + end_line, par->info->var.yres - 1); 377 375 start_line = 0; 378 376 end_line = par->info->var.yres - 1; 379 377 } ··· 671 665 unsigned long *gamma_curves = NULL; 672 666 673 667 /* sanity check */ 674 - if (display->gamma_num * display->gamma_len > FBTFT_GAMMA_MAX_VALUES_TOTAL) { 668 + if (display->gamma_num * display->gamma_len > 669 + FBTFT_GAMMA_MAX_VALUES_TOTAL) { 675 670 dev_err(dev, "FBTFT_GAMMA_MAX_VALUES_TOTAL=%d is exceeded\n", 676 671 FBTFT_GAMMA_MAX_VALUES_TOTAL); 677 672 return NULL; ··· 839 832 #ifdef CONFIG_HAS_DMA 840 833 if (dma) { 841 834 dev->coherent_dma_mask = ~0; 842 - txbuf = dmam_alloc_coherent(dev, txbuflen, &par->txbuf.dma, GFP_DMA); 835 + txbuf = dmam_alloc_coherent(dev, txbuflen, 836 + &par->txbuf.dma, GFP_DMA); 843 837 } else 844 838 #endif 845 839 { 846 - txbuf = devm_kzalloc(par->info->device, txbuflen, GFP_KERNEL); 840 + txbuf = devm_kzalloc(par->info->device, 841 + txbuflen, GFP_KERNEL); 847 842 } 848 843 if (!txbuf) 849 844 goto alloc_fail;