Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp548987rwe; Thu, 25 Aug 2022 05:19:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR6dW4F7Wi0pis0mhU4EZnRWf/ieJDgoBGRMxDpNJTjshK6yBDJkDDv/e2E/6Q+m32ec6NX9 X-Received: by 2002:a17:902:da86:b0:16f:93f:15a7 with SMTP id j6-20020a170902da8600b0016f093f15a7mr3772838plx.52.1661429976007; Thu, 25 Aug 2022 05:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661429976; cv=none; d=google.com; s=arc-20160816; b=ve5IttbNEjFegwEd9hY3Uk8hRAswlpfTJlASpa/5HocG7evok1d2RwwDF+2pudMQsk JAQ+fzP3XeTFQsCYov88hAwsLD9zxJHktwsm5cd7E9tcSXWpiDgFxTTFz/fqtvMDD9ay ZcKWOB+5Cc1OYqBKqAUJB5FgZB2HiKAfYDWHJwUE884ZtWrYIc25fn5KAj+FcaLfgZZh +dG9I51p3gch/Wm6BauqtaGvSfsJafcj+AxkN0sySdu9Q9HdZ1p1DayHdImIoUZ4YgzI GhflV6iZr33l0px+8XhzB7i7gan+4H7rmTd5UNqrVhOd/CZMBc0RQEcRTgqxvcuAU655 WESA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:content-disposition:mime-version :mail-followup-to:message-id:subject:cc:to:from:date; bh=Wzdzblp7iChR/BZod+MOZmpQF3F/czaPRimsrwI1y2I=; b=njM/mZNRttI6e2RC3mU41Z/UVSSnfqLd+XxLKxLj1+3g4Yf+WJDvfjxvdkgxwCRTts gPlEQ+keqvtEOAoowwtDni0XRxHEvG1wgdtoEgxtIm7rjoZso03Y1QcaZsllpR9F+d1Z z37xE9HPBEEI4XYHSg5oErA+yrCn2vXyXYXcDXmGphOIRsafCkwdeKgUsimUqgh9eTEh OkSDPpkvt6p/Mbl54UsF3ORoqjzSLIhZ8OHyx4Q/8YJa0MrarfZWJrX/A3cCDL1y2EXQ JWh/eZDjWzRHkJeySOT4Vy+kkvCO/royHi7tEnj+ocqCGBI6je8yGGAUQPts3RdkQzM9 2+SQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a056a00234f00b00535bb66024asi22538214pfj.306.2022.08.25.05.19.24; Thu, 25 Aug 2022 05:19:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241071AbiHYLrf (ORCPT + 99 others); Thu, 25 Aug 2022 07:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241059AbiHYLrc (ORCPT ); Thu, 25 Aug 2022 07:47:32 -0400 Received: from out20-146.mail.aliyun.com (out20-146.mail.aliyun.com [115.124.20.146]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21E2A74E17 for ; Thu, 25 Aug 2022 04:47:29 -0700 (PDT) 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 Date: Thu, 25 Aug 2022 19:47:26 +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] 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 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: work_work_work X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __platform_get_irq_byname determinies whether the interrupt number is 0 and returns EINVAL. Signed-off-by: fuyao --- 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