All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: adc: ade9000: fix wrong macro names in ADE9000_ST_ERROR
@ 2026-02-27 10:09 Giorgi Tchankvetadze
  2026-02-27 10:33 ` Andy Shevchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Giorgi Tchankvetadze @ 2026-02-27 10:09 UTC (permalink / raw)
  To: antoniu.miclaus, lars, Michael.Hennerich, jic23
  Cc: dlechner, nuno.sa, andy, linux-iio, linux-kernel,
	Giorgi Tchankvetadze

The ADE9000_ST_ERROR macro references ADE9000_ST1_ERROR0 through
ADE9000_ST1_ERROR3, but the actual defined symbols use the _BIT
suffix. Fix the references to use the correct macro names.

Signed-off-by: Giorgi Tchankvetadze <giorgitchankvetadze1997@gmail.com>
---
 drivers/iio/adc/ade9000.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/adc/ade9000.c b/drivers/iio/adc/ade9000.c
index 5dcc26a08970..0dbfc079e115 100644
--- a/drivers/iio/adc/ade9000.c
+++ b/drivers/iio/adc/ade9000.c
@@ -219,8 +219,8 @@
 #define ADE9000_ST1_ERROR2_BIT		BIT(30)
 #define ADE9000_ST1_ERROR3_BIT		BIT(31)
 #define ADE9000_ST_ERROR \
-	(ADE9000_ST1_ERROR0 | ADE9000_ST1_ERROR1 | \
-	 ADE9000_ST1_ERROR2 | ADE9000_ST1_ERROR3)
+	(ADE9000_ST1_ERROR0_BIT | ADE9000_ST1_ERROR1_BIT | \
+	 ADE9000_ST1_ERROR2_BIT | ADE9000_ST1_ERROR3_BIT)
 #define ADE9000_ST1_CROSSING_FIRST	6
 #define ADE9000_ST1_CROSSING_DEPTH	25
 
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-03-02  5:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-27 10:09 [PATCH] iio: adc: ade9000: fix wrong macro names in ADE9000_ST_ERROR Giorgi Tchankvetadze
2026-02-27 10:33 ` Andy Shevchenko
2026-02-27 10:52   ` Giorgi Tchankvetadze
2026-02-27 14:44     ` Andy Shevchenko
2026-02-28 12:08       ` Jonathan Cameron
2026-03-02  5:57         ` Giorgi Tchankvetadze

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.