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

drivers/fbtft: Remove newline after else in else-if

This removes the following warning issued by checkpatch

WARNING: suspect code indent for conditional statements (8, 8)
+ } else
+ if (display->regwidth == 8 && display->buswidth == 9 && par->spi) {

Signed-off-by: Luis Gerhorst <linux-kernel@luisgerhorst.de>
Acked-by: Jonny Schaefer <schaefer.jonny@gmail.com>
Acked-by: Alexander Wuerstlein <arw@cs.fau.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Luis Gerhorst and committed by
Greg Kroah-Hartman
17c9d1ba e0f1fd05

+1 -2
+1 -2
drivers/staging/fbtft/fbtft-core.c
··· 1369 1369 /* write register functions */ 1370 1370 if (display->regwidth == 8 && display->buswidth == 8) { 1371 1371 par->fbtftops.write_register = fbtft_write_reg8_bus8; 1372 - } else 1373 - if (display->regwidth == 8 && display->buswidth == 9 && par->spi) { 1372 + } else if (display->regwidth == 8 && display->buswidth == 9 && par->spi) { 1374 1373 par->fbtftops.write_register = fbtft_write_reg8_bus9; 1375 1374 } else if (display->regwidth == 16 && display->buswidth == 8) { 1376 1375 par->fbtftops.write_register = fbtft_write_reg16_bus8;