linux-sunxi.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] iio: adc: sun4i-gpadc-iio: adaptation interrupt number
@ 2022-08-25 11:47 fuyao
  2022-08-25 20:18 ` Jernej Škrabec
  2023-12-20  7:08 ` fuyao
  0 siblings, 2 replies; 13+ messages in thread
From: fuyao @ 2022-08-25 11:47 UTC (permalink / raw)
  To: Lee Jones, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	linux-arm-kernel, linux-sunxi, linux-kernel
  Cc: Maxime Ripard, maijianzhang

__platform_get_irq_byname determinies whether the interrupt
number is 0 and returns EINVAL.

Signed-off-by: fuyao <fuyao1697@cyg.com>
---
 include/linux/mfd/sun4i-gpadc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/mfd/sun4i-gpadc.h b/include/linux/mfd/sun4i-gpadc.h
index ea0ccf33a459..021f820f9d52 100644
--- a/include/linux/mfd/sun4i-gpadc.h
+++ b/include/linux/mfd/sun4i-gpadc.h
@@ -81,8 +81,8 @@
 #define SUN4I_GPADC_TEMP_DATA				0x20
 #define SUN4I_GPADC_DATA				0x24
 
-#define SUN4I_GPADC_IRQ_FIFO_DATA			0
-#define SUN4I_GPADC_IRQ_TEMP_DATA			1
+#define SUN4I_GPADC_IRQ_FIFO_DATA			1
+#define SUN4I_GPADC_IRQ_TEMP_DATA			2
 
 /* 10s delay before suspending the IP */
 #define SUN4I_GPADC_AUTOSUSPEND_DELAY			10000
-- 
2.32.0


-- 
Technology is exciting

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

end of thread, other threads:[~2024-01-09  8:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 11:47 [PATCH] iio: adc: sun4i-gpadc-iio: adaptation interrupt number fuyao
2022-08-25 20:18 ` Jernej Škrabec
2022-09-08  6:55   ` Lee Jones
2023-12-20  7:15     ` [PATCH RESEND] " fuyao
2023-12-20  7:23     ` fuyao
2023-12-20 11:54       ` Andre Przywara
2023-12-21 15:25         ` Lee Jones
2023-12-21 15:26           ` Lee Jones
2023-12-22 17:54           ` Jernej Škrabec
2023-12-25  9:54             ` fuyao
2024-01-09  8:55             ` Lee Jones
2023-12-25  9:52         ` fuyao
2023-12-20  7:08 ` fuyao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).