From patchwork Tue May 11 15:31:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tang Bin X-Patchwork-Id: 12251393 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92F82C433B4 for ; Tue, 11 May 2021 15:30:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5F166615FF for ; Tue, 11 May 2021 15:30:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231461AbhEKPbk (ORCPT ); Tue, 11 May 2021 11:31:40 -0400 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:25455 "EHLO cmccmta2.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231754AbhEKPbh (ORCPT ); Tue, 11 May 2021 11:31:37 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.7]) by rmmx-syy-dmz-app08-12008 (RichMail) with SMTP id 2ee8609aa306443-09d98; Tue, 11 May 2021 23:30:14 +0800 (CST) X-RM-TRANSID: 2ee8609aa306443-09d98 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[112.22.251.112]) by rmsmtp-syy-appsvr04-12004 (RichMail) with SMTP id 2ee4609aa30251e-f151c; Tue, 11 May 2021 23:30:14 +0800 (CST) X-RM-TRANSID: 2ee4609aa30251e-f151c From: Tang Bin To: Michael.Hennerich@analog.com, lars@metafoo.de, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Tang Bin , Zhang Shengju Subject: [PATCH] iio: adc: ad7768-1: Fix the right interrupt interface calls Date: Tue, 11 May 2021 23:31:08 +0800 Message-Id: <20210511153108.14816-1-tangbin@cmss.chinamobile.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org In the function ad7768_probe(), the devm_request_irq() should call ad7768_interrupt, not &ad7768_interrupt, so fix this mistake. Fixes: a5f8c7da3dbe ("iio: adc: Add AD7768-1 ADC basic support") Signed-off-by: Zhang Shengju Signed-off-by: Tang Bin --- drivers/iio/adc/ad7768-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768-1.c index 0e93b0766..9c9ab56d6 100644 --- a/drivers/iio/adc/ad7768-1.c +++ b/drivers/iio/adc/ad7768-1.c @@ -605,7 +605,7 @@ static int ad7768_probe(struct spi_device *spi) init_completion(&st->completion); ret = devm_request_irq(&spi->dev, spi->irq, - &ad7768_interrupt, + ad7768_interrupt, IRQF_TRIGGER_RISING | IRQF_ONESHOT, indio_dev->name, indio_dev); if (ret)