leds: leds-aat1290.c: enclosed arithmetic expression macro
PATCH 1/1 leds: leds-aat1290.c: enclosed arithmetic expression macro
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 <[email protected]>
--- drivers/leds/leds-aat1290.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/leds/leds-aat1290.c +1 -1
@@ -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
Signature · 1 line
2.13.2
Pavel Machek
NAKQuoted 5 lines · Lynn Lei
Fixed the unenclosed complex values macro issue generated by
scripts/checkpatch.pl:
ERROR: Macros with complex values should be enclosed in parenthesesSigned-off-by Lynn Lei <[email protected]>
That's very very very stupid, right?
Please don't do random checkpatch cleanups, be careful and test your changes.
NAK.
Pavel
Quoted 17 lines
--- drivers/leds/leds-aat1290.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/leds/leds-aat1290.c +1
-1@@ -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
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html