summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fb_ili9325.c
diff options
context:
space:
mode:
authorLeonardo Brás2018-08-08 02:28:16 +0200
committerGreg Kroah-Hartman2018-08-08 14:23:16 +0200
commit0b1533c6c6f63bca9807fd6f295d769b6f4b5a11 (patch)
tree792f54ef8386e5043db1d4f3d509c9fbbdf4863a /drivers/staging/fbtft/fb_ili9325.c
parentstaging: rtl8188eu: remove unused array dB_Invert_Table (diff)
downloadkernel-qcow2-linux-0b1533c6c6f63bca9807fd6f295d769b6f4b5a11.tar.gz
kernel-qcow2-linux-0b1533c6c6f63bca9807fd6f295d769b6f4b5a11.tar.xz
kernel-qcow2-linux-0b1533c6c6f63bca9807fd6f295d769b6f4b5a11.zip
staging: fbtft: Puts macro arguments in parenthesis to avoid precedence issues - Style
Puts macro arguments in parenthesis to avoid precedence issues. Some large lines were broken to fit the 80-char limit. Signed-off-by: Leonardo Brás <leobras.c@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fb_ili9325.c')
-rw-r--r--drivers/staging/fbtft/fb_ili9325.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fb_ili9325.c b/drivers/staging/fbtft/fb_ili9325.c
index d6b1d4be9ff4..2cf75f2e03e2 100644
--- a/drivers/staging/fbtft/fb_ili9325.c
+++ b/drivers/staging/fbtft/fb_ili9325.c
@@ -205,7 +205,7 @@ static int set_var(struct fbtft_par *par)
* VRP0 VRP1 RP0 RP1 KP0 KP1 KP2 KP3 KP4 KP5
* VRN0 VRN1 RN0 RN1 KN0 KN1 KN2 KN3 KN4 KN5
*/
-#define CURVE(num, idx) curves[num * par->gamma.num_values + idx]
+#define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)]
static int set_gamma(struct fbtft_par *par, u32 *curves)
{
unsigned long mask[] = {