Skip to contentSkip to conversation

staging: iio: adc: ad7280a.c: fixed macro coding style

PATCH In review Kumar Amit Mehta 2 participants 2 messages Nov 2, 2012

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: iio: adc: ad7280a.c: fixed macro coding style

remove unnecessary semicolon from the macro definition

---
 drivers/staging/iio/adc/ad7280a.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/adc/ad7280a.c +1 -1
index cfc39a7..e7cb3b2 100644
@@ -117,7 +117,7 @@
  */
 #define POLYNOM		0x2F
 #define POLYNOM_ORDER	8
-#define HIGHBIT		1 << (POLYNOM_ORDER - 1);
+#define HIGHBIT		(1 << (POLYNOM_ORDER - 1))
 
 struct ad7280_state {
 	struct spi_device		*spi;
Signature · 1 line
1.7.9.5
maintainer
#1 lore raw
Quoted 3 lines · Kumar Amit Mehta

remove unnecessary semicolon from the macro definition

Thanks, added to togreg branch of iio.git

Quoted 18 lines
---
 drivers/staging/iio/adc/ad7280a.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/adc/ad7280a.c +1 -1
index cfc39a7..e7cb3b2 100644
@@ -117,7 +117,7 @@
  */
 #define POLYNOM		0x2F
 #define POLYNOM_ORDER	8
-#define HIGHBIT		1 << (POLYNOM_ORDER - 1);
+#define HIGHBIT		(1 << (POLYNOM_ORDER - 1))
 
 struct ad7280_state {
 	struct spi_device		*spi;