From: Lynn Lei <lynnl.yet@gmail.com>
To: rpurdie@rpsys.net
Cc: jacek.anaszewski@gmail.com, pavel@ucw.cz, linux-leds@vger.kernel.org
Subject: [PATCH] leds: leds-aat1290.c: enclosed arithmetic expression macro
Date: Tue, 11 Jul 2017 23:21:01 +0800 [thread overview]
Message-ID: <20170711151533.GA15670@lynnl.yet> (raw)
Fixed the unenclosed complex values macro issue generated by
scripts/checkpatch.pl:
ERROR: Macros with complex values should be enclosed in parentheses
Signed-off-by: Lynn Lei <lynnl.yet@gmail.com>
---
drivers/leds/leds-aat1290.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/leds/leds-aat1290.c b/drivers/leds/leds-aat1290.c
index a21e19297745..061e2cfd8097 100644
--- a/drivers/leds/leds-aat1290.c
+++ b/drivers/leds/leds-aat1290.c
@@ -35,7 +35,7 @@
#define AAT1290_MM_CURRENT_RATIO_ADDR 20
#define AAT1290_MM_TO_FL_1_92 1
-#define AAT1290_MM_TO_FL_RATIO 1000 / 1920
+#define AAT1290_MM_TO_FL_RATIO (1000 / 1920)
#define AAT1290_MAX_MM_CURRENT(fl_max) (fl_max * AAT1290_MM_TO_FL_RATIO)
#define AAT1290_LATCH_TIME_MIN_US 500
--
2.13.2
next reply other threads:[~2017-07-11 15:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-11 15:21 Lynn Lei [this message]
2017-07-11 15:31 ` [PATCH] leds: leds-aat1290.c: enclosed arithmetic expression macro Pavel Machek
-- strict thread matches above, loose matches on Subject: below --
2017-07-11 15:23 Lynn Lei
2017-07-11 15:42 ` Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170711151533.GA15670@lynnl.yet \
--to=lynnl.yet@gmail.com \
--cc=jacek.anaszewski@gmail.com \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rpurdie@rpsys.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.