Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1685137
| From | Lynn Lei <lynnl.yet@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] leds: leds-aat1290.c: enclosed arithmetic expression macro |
| Date | 2017-07-11 17:30 +0200 |
| Message-ID | <u25gS-41E-11@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] leds: leds-aat1290.c: enclosed arithmetic expression macro Lynn Lei <lynnl.yet@gmail.com> - 2017-07-11 17:30 +0200 Re: [PATCH] leds: leds-aat1290.c: enclosed arithmetic expression macro Joe Perches <joe@perches.com> - 2017-07-11 17:50 +0200
csiph-web