summaryrefslogtreecommitdiff
path: root/drivers/staging/fbtft/fb_ili9341.c
diff options
context:
space:
mode:
authorLeonardo Brás <leobras.c@gmail.com>2018-08-08 03:28:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-08 15:23:16 +0300
commit0b1533c6c6f63bca9807fd6f295d769b6f4b5a11 (patch)
tree792f54ef8386e5043db1d4f3d509c9fbbdf4863a /drivers/staging/fbtft/fb_ili9341.c
parent243638bc1c76a34d709432a59453f31123408742 (diff)
downloadlinux-0b1533c6c6f63bca9807fd6f295d769b6f4b5a11.tar.xz
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_ili9341.c')
-rw-r--r--drivers/staging/fbtft/fb_ili9341.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fb_ili9341.c b/drivers/staging/fbtft/fb_ili9341.c
index a10e8c9de438..9ccd0823c3ab 100644
--- a/drivers/staging/fbtft/fb_ili9341.c
+++ b/drivers/staging/fbtft/fb_ili9341.c
@@ -111,7 +111,7 @@ static int set_var(struct fbtft_par *par)
* Positive: Par1 Par2 [...] Par15
* Negative: Par1 Par2 [...] Par15
*/
-#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)
{
int i;