Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp416937rdb; Wed, 20 Dec 2023 00:24:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFd85dWt6/YRgqBetE0TLn0jMYn558hKHyuUYnqSLIylwHys2K4cMXp9C8+IbRbkQyuT0U7 X-Received: by 2002:a05:6a00:23d5:b0:6d6:688a:56e9 with SMTP id g21-20020a056a0023d500b006d6688a56e9mr3304030pfc.7.1703060676962; Wed, 20 Dec 2023 00:24:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703060676; cv=none; d=google.com; s=arc-20160816; b=CLxXJYhfc7af8dUinM4WwUbhZmjwbHL+P4MayyGZTocMVfkDWF6AJotg85o5LY3D1M t8ZabVcYg7ujf80nPZzRGaxHy6GWSRoPLjcFtoYPR8tBMlPIZ+SYzktvMgLEucEjZG1O 3Fe/UBTzKWuUKaDjKjrZnqf5/jocRvjh6/4HlAAFFgwBu8YZHjGd6rfiRILSVgOlN7vp UHhMDfQRzG8u78FB7dAJyeW4BT4R9Vk+zKnjDi5U8fMpeaCuUMuXfuvJ05ZK0QhfaWLz Mgl5jlu/CiWdhm1XBHV8WziXiVhkaTeuWzaGmH75CPm/rLRJv3OJVM/XSx9yaEofAJx4 ry7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:organization:precedence:in-reply-to :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:mail-followup-to:message-id:subject:cc:to:from :date; bh=a8dYGrQrNV2OBSHfsr5D+y/XhZsR66bqSYaHYW1H4LA=; fh=5iWUPXsfBnO6aQHh6JTsqPVCdFZ7UcCCbMKRFuZ84Ts=; b=ZhG2jLcmEabgGoH6bYVBjIkvDn9eWreRVbXZUZeJFixVvbIiWHABkhjbki5ayQu0QF xQR5YQpkEYpSrkTlxVpD51V2Updxx1Ng+h1s/5yXXL0Jxyox4Ibx0GME4boF+hxI4PTY ULwcGmajYjZM4D5ZMqvZplnrGULYbEO1zaaF43jLLM6A15jo8pu6lYc3OkTWiZgiF8p4 2zrTbC7lesHgedl0mYpvPYDuwy5q4YxUAXwH3cf3S1uHWC8Ie5ibX7IU0S0zfzBRjt4d n7720zz/iCiFDsUCLvt5UKL99uw7BiAwIO6y6NYbEcPqiQP8tpYjuwwkZWBWlwdhD8v1 WHDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cyg.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r9-20020a63ec49000000b005c662c8da8asi21744471pgj.203.2023.12.20.00.24.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 00:24:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cyg.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9DA36280F31 for ; Wed, 20 Dec 2023 08:24:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFF1E1A5B3; Wed, 20 Dec 2023 08:24:29 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from out28-84.mail.aliyun.com (out28-84.mail.aliyun.com [115.124.28.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACF0F199AB for ; Wed, 20 Dec 2023 08:24:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=cyg.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sjterm.com X-Alimail-AntiSpam:AC=CONTINUE;BC=0.261246|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.028598-0.00112938-0.970273;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047209;MF=fuyao@sjterm.com;NM=1;PH=DS;RN=9;RT=9;SR=0;TI=SMTPD_---.Voiv2io_1703056997; Received: from localhost(mailfrom:fuyao@sjterm.com fp:SMTPD_---.Voiv2io_1703056997) by smtp.aliyun-inc.com; Wed, 20 Dec 2023 15:23:18 +0800 Date: Wed, 20 Dec 2023 15:23:17 +0800 From: fuyao To: Lee Jones , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Maxime Ripard , maijianzhang Subject: [PATCH RESEND] iio: adc: sun4i-gpadc-iio: adaptation interrupt number Message-ID: Mail-Followup-To: Lee Jones , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Maxime Ripard , maijianzhang Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Received: from out20-218.mail.aliyun.com (out20-218.mail.aliyun.com [115.124.20.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 103EC2F28 for ; Thu, 25 Aug 2022 12:18:23 +0000 (UTC) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.3045855|-1;BR=01201311R131S89rulernew998_84748_2000303;CH=blue;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.025949-0.00105542-0.972996;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047190;MF=fuyao@sjterm.com;NM=1;PH=DS;RN=9;RT=9;SR=0;TI=SMTPD_---.P.m81RD_1661428046; Received: from localhost(mailfrom:fuyao@sjterm.com fp:SMTPD_---.P.m81RD_1661428046) by smtp.aliyun-inc.com; Thu, 25 Aug 2022 19:47:26 +0800 Precedence: bulk Organization: work_work_work Organization: work_work_work __platform_get_irq_byname determinies whether the interrupt number is 0 and returns EINVAL. Signed-off-by: fuyao Acked-by: Jernej Skrabec --- 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