[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230312133347.120944-1-eng.mennamahmoud.mm@gmail.com>
Date: Sun, 12 Mar 2023 15:33:47 +0200
From: Menna Mahmoud <eng.mennamahmoud.mm@...il.com>
To: outreachy@...ts.linux.dev
Cc: lars@...afoo.de, Michael.Hennerich@...log.com, jic23@...nel.org,
gregkh@...uxfoundation.org, linux-iio@...r.kernel.org,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
eng.mennamahmoud.mm@...il.com
Subject: [PATCH] staging: iio: meter: enclose Macros with complex values in parentheses
enclose Macros with complex values in parentheses is especially useful
in making macro definitions “safe” (so that they
evaluate each operand exactly once).
this error reported by chechpatch.pl
"ERROR: Macros with complex values should be enclosed in parentheses"
for ADE7854_SPI_SLOW, ADE7854_SPI_BURST and ADE7854_SPI_FAST
macros and this error fixed by enclose these macros in parentheses.
Signed-off-by: Menna Mahmoud <eng.mennamahmoud.mm@...il.com>
---
drivers/staging/iio/meter/ade7854.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/iio/meter/ade7854.h b/drivers/staging/iio/meter/ade7854.h
index 7a49f8f1016f..41eeedef569b 100644
--- a/drivers/staging/iio/meter/ade7854.h
+++ b/drivers/staging/iio/meter/ade7854.h
@@ -139,9 +139,9 @@
#define ADE7854_MAX_RX 7
#define ADE7854_STARTUP_DELAY 1000
-#define ADE7854_SPI_SLOW (u32)(300 * 1000)
-#define ADE7854_SPI_BURST (u32)(1000 * 1000)
-#define ADE7854_SPI_FAST (u32)(2000 * 1000)
+#define ADE7854_SPI_SLOW ((u32)(300 * 1000))
+#define ADE7854_SPI_BURST ((u32)(1000 * 1000))
+#define ADE7854_SPI_FAST ((u32)(2000 * 1000))
/**
* struct ade7854_state - device instance specific data
--
2.34.1
Powered by blists - more mailing lists