Commit 17c9d1ba authored by Luis Gerhorst's avatar Luis Gerhorst Committed by Greg Kroah-Hartman

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: default avatarLuis Gerhorst <linux-kernel@luisgerhorst.de>
Acked-by: default avatarJonny Schaefer <schaefer.jonny@gmail.com>
Acked-by: default avatarAlexander Wuerstlein <arw@cs.fau.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e0f1fd05
...@@ -1369,8 +1369,7 @@ int fbtft_probe_common(struct fbtft_display *display, ...@@ -1369,8 +1369,7 @@ int fbtft_probe_common(struct fbtft_display *display,
/* write register functions */ /* write register functions */
if (display->regwidth == 8 && display->buswidth == 8) { if (display->regwidth == 8 && display->buswidth == 8) {
par->fbtftops.write_register = fbtft_write_reg8_bus8; par->fbtftops.write_register = fbtft_write_reg8_bus8;
} else } else if (display->regwidth == 8 && display->buswidth == 9 && par->spi) {
if (display->regwidth == 8 && display->buswidth == 9 && par->spi) {
par->fbtftops.write_register = fbtft_write_reg8_bus9; par->fbtftops.write_register = fbtft_write_reg8_bus9;
} else if (display->regwidth == 16 && display->buswidth == 8) { } else if (display->regwidth == 16 && display->buswidth == 8) {
par->fbtftops.write_register = fbtft_write_reg16_bus8; par->fbtftops.write_register = fbtft_write_reg16_bus8;
......
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