From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933454AbdGKPYD (ORCPT ); Tue, 11 Jul 2017 11:24:03 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34853 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932358AbdGKPYC (ORCPT ); Tue, 11 Jul 2017 11:24:02 -0400 Date: Tue, 11 Jul 2017 23:23:50 +0800 From: Lynn Lei To: linux-kernel@vger.kernel.org Subject: [PATCH] leds: leds-aat1290.c: enclosed arithmetic expression macro Message-ID: <20170711152350.GA10543@lynnl.yet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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