mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 07:34:03 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e0f1fd05af
commit
17c9d1ba9a
@@ -1369,8 +1369,7 @@ int fbtft_probe_common(struct fbtft_display *display,
|
||||
/* write register functions */
|
||||
if (display->regwidth == 8 && display->buswidth == 8) {
|
||||
par->fbtftops.write_register = fbtft_write_reg8_bus8;
|
||||
} else
|
||||
if (display->regwidth == 8 && display->buswidth == 9 && par->spi) {
|
||||
} else if (display->regwidth == 8 && display->buswidth == 9 && par->spi) {
|
||||
par->fbtftops.write_register = fbtft_write_reg8_bus9;
|
||||
} else if (display->regwidth == 16 && display->buswidth == 8) {
|
||||
par->fbtftops.write_register = fbtft_write_reg16_bus8;
|
||||
|
||||
Reference in New Issue
Block a user