linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] leds: leds-aat1290.c: enclosed arithmetic expression macro
@ 2017-07-11 15:21 Lynn Lei
  2017-07-11 15:31 ` Pavel Machek
  0 siblings, 1 reply; 2+ messages in thread
From: Lynn Lei @ 2017-07-11 15:21 UTC (permalink / raw)
  To: rpurdie; +Cc: jacek.anaszewski, pavel, linux-leds

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-11 15:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-11 15:21 [PATCH] leds: leds-aat1290.c: enclosed arithmetic expression macro Lynn Lei
2017-07-11 15:31 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).