summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fbtft-core.c
diff options
context:
space:
mode:
authorLen Baker <len.baker@gmx.com>2021-08-01 10:51:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-05 13:05:57 +0200
commitf9d39971c0cc648625c841af16e7c96911603e63 (patch)
tree7221493b8706b2e0da3b05ff1679e382087702ce /drivers/staging/fbtft/fbtft-core.c
parent31f0c349dd399ae03df5633abd73830b2429e7a1 (diff)
downloadlinux-stable-f9d39971c0cc648625c841af16e7c96911603e63.tar.gz
linux-stable-f9d39971c0cc648625c841af16e7c96911603e63.tar.bz2
linux-stable-f9d39971c0cc648625c841af16e7c96911603e63.zip
staging/fbtft: Fix braces coding style
Add braces to the "for" loop. This way, the kernel coding style is followed. Signed-off-by: Len Baker <len.baker@gmx.com> Link: https://lore.kernel.org/r/20210801085155.3170-4-len.baker@gmx.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fbtft-core.c')
-rw-r--r--drivers/staging/fbtft/fbtft-core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c
index ed896049118c..ed992ca605eb 100644
--- a/drivers/staging/fbtft/fbtft-core.c
+++ b/drivers/staging/fbtft/fbtft-core.c
@@ -1003,9 +1003,11 @@ int fbtft_init_display(struct fbtft_par *par)
}
/* make sure stop marker exists */
- for (i = 0; i < FBTFT_MAX_INIT_SEQUENCE; i++)
+ for (i = 0; i < FBTFT_MAX_INIT_SEQUENCE; i++) {
if (par->init_sequence[i] == -3)
break;
+ }
+
if (i == FBTFT_MAX_INIT_SEQUENCE) {
dev_err(par->info->device,
"missing stop marker at end of init sequence\n");