From patchwork Sun Oct 31 14:21:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 12595155 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 645FFC4332F for ; Sun, 31 Oct 2021 14:21:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4A87B60187 for ; Sun, 31 Oct 2021 14:21:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229745AbhJaOY2 (ORCPT ); Sun, 31 Oct 2021 10:24:28 -0400 Received: from www381.your-server.de ([78.46.137.84]:57556 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbhJaOY1 (ORCPT ); Sun, 31 Oct 2021 10:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=gKE3nw/HFC8lzeI47EHip0Hwb4LlbJ7XRw0bhspFohQ=; b=BnXTVG39UvFr3Qq//1KgEptCKa ePhQPgFN1hwLJuLiRvhMjNaUBytsD7gCcP2UsBajzi7DpxLqcESDaWhrsYY4uLQhb0xVch+10omGw F4d2hNcyRr+a6SVPTXUr1obqQNb6MRz8tRAcSPEBr0/B6eFCsCdgXJG8CaxzqguQXJuYNvK+lQTBI nE5Vtru0sxzD6lEDxWurC4Cwk/Umo0NzFfwJvMlypUFpTWNmAFvSxZVxTbSIs7k0lsdlWnoiKTjjF 16ISbjw05kHm9TKO3t5IWyAI9EG17h7QuLpyBxZ073AYCYtBxpKNzMitWckrN8YeXr8euAkYxgfRd /9zMI+mg==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mhBic-000693-07; Sun, 31 Oct 2021 15:21:54 +0100 Received: from [82.135.83.112] (helo=lars-desktop.fritz.box) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhBib-000F2T-Po; Sun, 31 Oct 2021 15:21:53 +0100 From: Lars-Peter Clausen To: Jonathan Cameron Cc: Michael Hennerich , Nuno Sa , Matt Ranostay , Linus Walleij , linux-iio@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 1/9] iio: interrupt-trigger: Remove no-op trigger ops Date: Sun, 31 Oct 2021 15:21:22 +0100 Message-Id: <20211031142130.20791-1-lars@metafoo.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.3/26339/Sun Oct 31 09:18:16 2021) Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The IIO core handles a trigger ops with all NULL callbacks the same as if the trigger ops itself was NULL. Remove the empty trigger ops from the interrupt trigger driver to slightly reduce the boilerplate code. Object size of the driver module is also slightly reduced. Signed-off-by: Lars-Peter Clausen --- drivers/iio/trigger/iio-trig-interrupt.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/iio/trigger/iio-trig-interrupt.c b/drivers/iio/trigger/iio-trig-interrupt.c index f746c460bf2a..5f49cd105fae 100644 --- a/drivers/iio/trigger/iio-trig-interrupt.c +++ b/drivers/iio/trigger/iio-trig-interrupt.c @@ -25,9 +25,6 @@ static irqreturn_t iio_interrupt_trigger_poll(int irq, void *private) return IRQ_HANDLED; } -static const struct iio_trigger_ops iio_interrupt_trigger_ops = { -}; - static int iio_interrupt_trigger_probe(struct platform_device *pdev) { struct iio_interrupt_trigger_info *trig_info; @@ -58,7 +55,6 @@ static int iio_interrupt_trigger_probe(struct platform_device *pdev) } iio_trigger_set_drvdata(trig, trig_info); trig_info->irq = irq; - trig->ops = &iio_interrupt_trigger_ops; ret = request_irq(irq, iio_interrupt_trigger_poll, irqflags, trig->name, trig); if (ret) { From patchwork Sun Oct 31 14:21:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 12595147 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14FFDC433EF for ; Sun, 31 Oct 2021 14:21:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F077B60FC2 for ; Sun, 31 Oct 2021 14:21:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229725AbhJaOY1 (ORCPT ); Sun, 31 Oct 2021 10:24:27 -0400 Received: from www381.your-server.de ([78.46.137.84]:57554 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbhJaOY1 (ORCPT ); Sun, 31 Oct 2021 10:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=jHDaVu7kVe/tjTs8thO0lQ1kYyoEAs+FwmNQSWYYpVc=; b=DlysyyqYC+6cmjtxE/+e0ctUa4 ZaUqscuRiwwArMfjmq/Bm7DmJW5Ijw86oz6wvjB8HgqDMWnPVJeJt8UWIpblkRDag8KkriOCiW2Hc WsXP1lmXSoIC6uu4EnJE0Ec5djmzWFPME7g00aXm8eJUrhJxlDtkD3azbfRMNqnco0ZrCdy+lTRfR xW6HnZTfsTQbHIg/VCMAv2y3axQ2VxwO5cnJ/kLbqSnddQgjwQ3Kpky7pyr9RjpFqVncMOoYBrPD1 ITMsB6Wpkr4a3xaYFfSa47NMp4xZjOnTsvML+1TAZAjh/TMcuxvAzBYXFJBVUnMALtglcoM93s1wK Kr3pwqiQ==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mhBic-000694-2V; Sun, 31 Oct 2021 15:21:54 +0100 Received: from [82.135.83.112] (helo=lars-desktop.fritz.box) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhBib-000F2T-Sk; Sun, 31 Oct 2021 15:21:53 +0100 From: Lars-Peter Clausen To: Jonathan Cameron Cc: Michael Hennerich , Nuno Sa , Matt Ranostay , Linus Walleij , linux-iio@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 2/9] iio: sysfs-trigger: Remove no-op trigger ops Date: Sun, 31 Oct 2021 15:21:23 +0100 Message-Id: <20211031142130.20791-2-lars@metafoo.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211031142130.20791-1-lars@metafoo.de> References: <20211031142130.20791-1-lars@metafoo.de> MIME-Version: 1.0 X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.3/26339/Sun Oct 31 09:18:16 2021) Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The IIO core handles a trigger ops with all NULL callbacks the same as if the trigger ops itself was NULL. Remove the empty trigger ops from the interrupt trigger driver to slightly reduce the boilerplate code. Object size of the driver module is also slightly reduced. Signed-off-by: Lars-Peter Clausen --- drivers/iio/trigger/iio-trig-sysfs.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/iio/trigger/iio-trig-sysfs.c b/drivers/iio/trigger/iio-trig-sysfs.c index e9adfff45b39..2a4b75897910 100644 --- a/drivers/iio/trigger/iio-trig-sysfs.c +++ b/drivers/iio/trigger/iio-trig-sysfs.c @@ -124,9 +124,6 @@ static const struct attribute_group *iio_sysfs_trigger_attr_groups[] = { NULL }; -static const struct iio_trigger_ops iio_sysfs_trigger_ops = { -}; - static int iio_sysfs_trigger_probe(int id) { struct iio_sysfs_trig *t; @@ -156,7 +153,6 @@ static int iio_sysfs_trigger_probe(int id) } t->trig->dev.groups = iio_sysfs_trigger_attr_groups; - t->trig->ops = &iio_sysfs_trigger_ops; iio_trigger_set_drvdata(t->trig, t); t->work = IRQ_WORK_INIT_HARD(iio_sysfs_trigger_work); From patchwork Sun Oct 31 14:21:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 12595153 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1D42C433FE for ; Sun, 31 Oct 2021 14:21:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B1A3D60187 for ; Sun, 31 Oct 2021 14:21:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229681AbhJaOY2 (ORCPT ); Sun, 31 Oct 2021 10:24:28 -0400 Received: from www381.your-server.de ([78.46.137.84]:57544 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhJaOY1 (ORCPT ); Sun, 31 Oct 2021 10:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=ruVHB659mhcGzeiGKWvxI8ixOd980ICZrhUgFXELi0Y=; b=eCc5Cu68rEs5OPfFF+r1Xd2x21 pV08X1NiwGCrEjEYFEg1PAkbJ5mh9DrUcdI7sq2G3mMfQHOmBB8e5ltv4OXBFz7M1WEkN7sMh9yrE sS8SCHGdKNriHIj1g/mL5GS6Z/BP5iaoHQHGHcb8klA9XsKAWglY/jJcrzyS2LXfoq8kx0tJkfQRP x5OJPPw/wbfDT1+RYJSU3fFk1T7jcGXXJMwBA8HiRxHPcoiWxeSo3AvihfFywm0vm18WeD5Z8gwUx kU3t+Yd/9IFxMZqmzTIzSVRMpLzlCcK4Mw75UBvVoCsh3ZJqOz9FXogCig9ObSgdP9L3sy1iegSO4 jOh05R1g==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mhBic-000696-5h; Sun, 31 Oct 2021 15:21:54 +0100 Received: from [82.135.83.112] (helo=lars-desktop.fritz.box) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhBib-000F2T-VO; Sun, 31 Oct 2021 15:21:53 +0100 From: Lars-Peter Clausen To: Jonathan Cameron Cc: Michael Hennerich , Nuno Sa , Matt Ranostay , Linus Walleij , linux-iio@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 3/9] iio: ad_sigma_delta: Remove no-op trigger ops Date: Sun, 31 Oct 2021 15:21:24 +0100 Message-Id: <20211031142130.20791-3-lars@metafoo.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211031142130.20791-1-lars@metafoo.de> References: <20211031142130.20791-1-lars@metafoo.de> MIME-Version: 1.0 X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.3/26339/Sun Oct 31 09:18:16 2021) Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The IIO core handles a trigger ops with all NULL callbacks the same as if the trigger ops itself was NULL. Remove the empty trigger ops from the interrupt trigger driver to slightly reduce the boilerplate code. Object size of the driver module is also slightly reduced. Signed-off-by: Lars-Peter Clausen --- drivers/iio/adc/ad_sigma_delta.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/iio/adc/ad_sigma_delta.c b/drivers/iio/adc/ad_sigma_delta.c index 1d652d9b2f5c..cd418bd8bd87 100644 --- a/drivers/iio/adc/ad_sigma_delta.c +++ b/drivers/iio/adc/ad_sigma_delta.c @@ -467,9 +467,6 @@ int ad_sd_validate_trigger(struct iio_dev *indio_dev, struct iio_trigger *trig) } EXPORT_SYMBOL_GPL(ad_sd_validate_trigger); -static const struct iio_trigger_ops ad_sd_trigger_ops = { -}; - static int devm_ad_sd_probe_trigger(struct device *dev, struct iio_dev *indio_dev) { struct ad_sigma_delta *sigma_delta = iio_device_get_drvdata(indio_dev); @@ -486,7 +483,6 @@ static int devm_ad_sd_probe_trigger(struct device *dev, struct iio_dev *indio_de if (sigma_delta->trig == NULL) return -ENOMEM; - sigma_delta->trig->ops = &ad_sd_trigger_ops; init_completion(&sigma_delta->completion); sigma_delta->irq_dis = true; From patchwork Sun Oct 31 14:21:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 12595157 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 809D8C4321E for ; Sun, 31 Oct 2021 14:21:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6740460FD9 for ; Sun, 31 Oct 2021 14:21:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbhJaOY3 (ORCPT ); Sun, 31 Oct 2021 10:24:29 -0400 Received: from www381.your-server.de ([78.46.137.84]:57570 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229754AbhJaOY1 (ORCPT ); Sun, 31 Oct 2021 10:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=GYlqh/QoQrgTUf+L2zuxmnGlvPGztBGICImeGA0/608=; b=eTnps61xa13rfwG5nHTxFTfEop KH8xt+9e+4/f0pi6EX+XAfiTbIWfNBJgkYhz8qV2yFgMtKnLVqeopE3ux6KBLMtMFAtdDVWdlnY28 UMQwEio4Gp7bvp2Hvcpxh2bv/A+zuzob5pjO1AnhUQPZr/7NbdOJEtbkPrqem5sbhcLZnSpnPVbQL +aIh9DTIWffFuPFVmpW+H/QDkt9ISaSML1o7Dp4fGmRsTckSwzPxAczk831UdvaICJww/4HDwojdZ NbGu/MfwmIUmqlvMAmsTA2QMx9+SmyGRGeHFyNxnLgfERN1sye3IZWyA1cBuyw7Bf/ZQkjsH2Nf7d UwW1SyMA==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mhBic-00069B-7v; Sun, 31 Oct 2021 15:21:54 +0100 Received: from [82.135.83.112] (helo=lars-desktop.fritz.box) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhBic-000F2T-1o; Sun, 31 Oct 2021 15:21:54 +0100 From: Lars-Peter Clausen To: Jonathan Cameron Cc: Michael Hennerich , Nuno Sa , Matt Ranostay , Linus Walleij , linux-iio@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 4/9] iio: afe4403: Remove no-op trigger ops Date: Sun, 31 Oct 2021 15:21:25 +0100 Message-Id: <20211031142130.20791-4-lars@metafoo.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211031142130.20791-1-lars@metafoo.de> References: <20211031142130.20791-1-lars@metafoo.de> MIME-Version: 1.0 X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.3/26339/Sun Oct 31 09:18:16 2021) Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The IIO core handles a trigger ops with all NULL callbacks the same as if the trigger ops itself was NULL. Remove the empty trigger ops from the interrupt trigger driver to slightly reduce the boilerplate code. Object size of the driver module is also slightly reduced. Signed-off-by: Lars-Peter Clausen --- drivers/iio/health/afe4403.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/iio/health/afe4403.c b/drivers/iio/health/afe4403.c index 97b82f9a8e45..273f16dcaff8 100644 --- a/drivers/iio/health/afe4403.c +++ b/drivers/iio/health/afe4403.c @@ -345,9 +345,6 @@ static irqreturn_t afe4403_trigger_handler(int irq, void *private) return IRQ_HANDLED; } -static const struct iio_trigger_ops afe4403_trigger_ops = { -}; - #define AFE4403_TIMING_PAIRS \ { AFE440X_LED2STC, 0x000050 }, \ { AFE440X_LED2ENDC, 0x0003e7 }, \ @@ -530,8 +527,6 @@ static int afe4403_probe(struct spi_device *spi) iio_trigger_set_drvdata(afe->trig, indio_dev); - afe->trig->ops = &afe4403_trigger_ops; - ret = iio_trigger_register(afe->trig); if (ret) { dev_err(afe->dev, "Unable to register IIO trigger\n"); From patchwork Sun Oct 31 14:21:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 12595159 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B52BCC433F5 for ; Sun, 31 Oct 2021 14:21:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 975A160187 for ; Sun, 31 Oct 2021 14:21:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229853AbhJaOY3 (ORCPT ); Sun, 31 Oct 2021 10:24:29 -0400 Received: from www381.your-server.de ([78.46.137.84]:57564 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229792AbhJaOY1 (ORCPT ); Sun, 31 Oct 2021 10:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=fXyLFYpO7MHX+UysTp1rA6w31K5uVIJG/V9NQZ55MB0=; b=Gct3Ub02HS88vz8mZzC+902gts momgXXKttjw1DUa2lNYv9urWimK5kU4P+6kQscp4N76lu6EqiOB21KM4KAoNAuX/UIkqhN0q3P+mU iQxGpSkFIUQHRbAlW+eEs0K1aCBW9S9NL9S31iW2QqGkjLE1dt3WERrEmTpOa+r2+eLvWrH3Dm37Q A/aHOyCLIyqkd4oQE+8lDds1YQ7HPMFB8DclULTEhzai9BMJOAxgl7qsitonh+gWc3wdXiVpJBlwN cYeMDILuOjzTJSIHaR7lrN3qtVngkRE/+NGZPXtRt5vdxkYK+7kIBuvDF9PWHLStN8HLooxDQtsNN TdvUHI6Q==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mhBic-00069C-AV; Sun, 31 Oct 2021 15:21:54 +0100 Received: from [82.135.83.112] (helo=lars-desktop.fritz.box) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhBic-000F2T-4N; Sun, 31 Oct 2021 15:21:54 +0100 From: Lars-Peter Clausen To: Jonathan Cameron Cc: Michael Hennerich , Nuno Sa , Matt Ranostay , Linus Walleij , linux-iio@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 5/9] iio: afe4404: Remove no-op trigger ops Date: Sun, 31 Oct 2021 15:21:26 +0100 Message-Id: <20211031142130.20791-5-lars@metafoo.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211031142130.20791-1-lars@metafoo.de> References: <20211031142130.20791-1-lars@metafoo.de> MIME-Version: 1.0 X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.3/26339/Sun Oct 31 09:18:16 2021) Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The IIO core handles a trigger ops with all NULL callbacks the same as if the trigger ops itself was NULL. Remove the empty trigger ops from the interrupt trigger driver to slightly reduce the boilerplate code. Object size of the driver module is also slightly reduced. Signed-off-by: Lars-Peter Clausen --- drivers/iio/health/afe4404.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/iio/health/afe4404.c b/drivers/iio/health/afe4404.c index 7ef3f5e34de5..aa9311e1e655 100644 --- a/drivers/iio/health/afe4404.c +++ b/drivers/iio/health/afe4404.c @@ -347,9 +347,6 @@ static irqreturn_t afe4404_trigger_handler(int irq, void *private) return IRQ_HANDLED; } -static const struct iio_trigger_ops afe4404_trigger_ops = { -}; - /* Default timings from data-sheet */ #define AFE4404_TIMING_PAIRS \ { AFE440X_PRPCOUNT, 39999 }, \ @@ -537,8 +534,6 @@ static int afe4404_probe(struct i2c_client *client, iio_trigger_set_drvdata(afe->trig, indio_dev); - afe->trig->ops = &afe4404_trigger_ops; - ret = iio_trigger_register(afe->trig); if (ret) { dev_err(afe->dev, "Unable to register IIO trigger\n"); From patchwork Sun Oct 31 14:21:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 12595149 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A251C43219 for ; Sun, 31 Oct 2021 14:21:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 22E3660FD9 for ; Sun, 31 Oct 2021 14:21:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229660AbhJaOY2 (ORCPT ); Sun, 31 Oct 2021 10:24:28 -0400 Received: from www381.your-server.de ([78.46.137.84]:57550 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbhJaOY1 (ORCPT ); Sun, 31 Oct 2021 10:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=kfCSQpWys3eZqXQRjcbRyeN2ESNP4vyS3VNJPYPXss4=; b=TtvTuIWxkiJyAUGsqnRygpjjS4 qgUXqfWNAVLWC5aYpOBJw+UCte/42y5nGO4oML7xxxuwhlGW8FlNrgqt6Wdx2RCrjW1lPnCp/bJeO ar36346ToAtkg4GFDiVK/eo+ZCTMRUrO8M+KdD84Q0JfdzpHC0zsjiV7Ex+HUuDiLSoPrOkPcmEYP snz+rPQfIdNHGdDtJ5FYwFFbxDqguSQPbsCBP/FFNn3+iTJdoTr8bD5VkEZjfz06aeRL3I5IYqpG1 6FYc5a7q/n6jmY+iT5SmnFkv2vD6px5+wEj2dSr7xyI9pp7cFOSQaDWLv9QrYkTZ6orQF4aOudp2x cVvg+X8Q==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mhBic-00069I-Cx; Sun, 31 Oct 2021 15:21:54 +0100 Received: from [82.135.83.112] (helo=lars-desktop.fritz.box) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhBic-000F2T-72; Sun, 31 Oct 2021 15:21:54 +0100 From: Lars-Peter Clausen To: Jonathan Cameron Cc: Michael Hennerich , Nuno Sa , Matt Ranostay , Linus Walleij , linux-iio@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 6/9] iio: as3935: Remove no-op trigger ops Date: Sun, 31 Oct 2021 15:21:27 +0100 Message-Id: <20211031142130.20791-6-lars@metafoo.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211031142130.20791-1-lars@metafoo.de> References: <20211031142130.20791-1-lars@metafoo.de> MIME-Version: 1.0 X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.3/26339/Sun Oct 31 09:18:16 2021) Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The IIO core handles a trigger ops with all NULL callbacks the same as if the trigger ops itself was NULL. Remove the empty trigger ops from the interrupt trigger driver to slightly reduce the boilerplate code. Object size of the driver module is also slightly reduced. Signed-off-by: Lars-Peter Clausen --- drivers/iio/proximity/as3935.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/iio/proximity/as3935.c b/drivers/iio/proximity/as3935.c index 3797a8f54276..d62766b6b39e 100644 --- a/drivers/iio/proximity/as3935.c +++ b/drivers/iio/proximity/as3935.c @@ -238,9 +238,6 @@ static irqreturn_t as3935_trigger_handler(int irq, void *private) return IRQ_HANDLED; } -static const struct iio_trigger_ops iio_interrupt_trigger_ops = { -}; - static void as3935_event_work(struct work_struct *work) { struct as3935_state *st; @@ -417,7 +414,6 @@ static int as3935_probe(struct spi_device *spi) st->trig = trig; st->noise_tripped = jiffies - HZ; iio_trigger_set_drvdata(trig, indio_dev); - trig->ops = &iio_interrupt_trigger_ops; ret = devm_iio_trigger_register(dev, trig); if (ret) { From patchwork Sun Oct 31 14:21:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 12595145 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0E46C433F5 for ; Sun, 31 Oct 2021 14:21:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CEE8360FC1 for ; Sun, 31 Oct 2021 14:21:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229838AbhJaOY1 (ORCPT ); Sun, 31 Oct 2021 10:24:27 -0400 Received: from www381.your-server.de ([78.46.137.84]:57576 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbhJaOY1 (ORCPT ); Sun, 31 Oct 2021 10:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=jEbFWCaWEC+YBqa72rxZv+PXZkojri7OpZa48Mxv3Jw=; b=bVIaO7jskjfELxpTBn6IYwUa9I 6eMkp/0vuNRNiU1/ruhHP53fa3yp851q/2J/54y8k8TkJiVf1cgStpBNdjqT0Zd8QnN26ADY1m2SS 7M7wVT8xHRJ4uvOIaiZR+obavzGhw47OcCTnmdIU7AEBmRMsoONx6iMipZVx33VTkhaWv0K49s/V1 NKOzYWRu9DDi2au5nOpbSUVvaoEhFbFu4Q74bnzlkqJdV8s3BSvmcuQcXiRqImbU0Kl4qSFYJ50Q4 cOHtfY7F6WWwuT+xIipWjKMgWKgwn2bisWHKz/VKGzeII3JYc3LJjjlbU23Ajo+1Xn5mP96sVhb+E Z0onp1Wg==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mhBic-00069L-G5; Sun, 31 Oct 2021 15:21:54 +0100 Received: from [82.135.83.112] (helo=lars-desktop.fritz.box) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhBic-000F2T-9f; Sun, 31 Oct 2021 15:21:54 +0100 From: Lars-Peter Clausen To: Jonathan Cameron Cc: Michael Hennerich , Nuno Sa , Matt Ranostay , Linus Walleij , linux-iio@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 7/9] iio: atlas-sensor: Remove no-op trigger ops Date: Sun, 31 Oct 2021 15:21:28 +0100 Message-Id: <20211031142130.20791-7-lars@metafoo.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211031142130.20791-1-lars@metafoo.de> References: <20211031142130.20791-1-lars@metafoo.de> MIME-Version: 1.0 X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.3/26339/Sun Oct 31 09:18:16 2021) Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The IIO core handles a trigger ops with all NULL callbacks the same as if the trigger ops itself was NULL. Remove the empty trigger ops from the interrupt trigger driver to slightly reduce the boilerplate code. Object size of the driver module is also slightly reduced. Signed-off-by: Lars-Peter Clausen --- drivers/iio/chemical/atlas-sensor.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/iio/chemical/atlas-sensor.c b/drivers/iio/chemical/atlas-sensor.c index 9cb99585b6ff..04b44a327614 100644 --- a/drivers/iio/chemical/atlas-sensor.c +++ b/drivers/iio/chemical/atlas-sensor.c @@ -434,9 +434,6 @@ static int atlas_buffer_predisable(struct iio_dev *indio_dev) return 0; } -static const struct iio_trigger_ops atlas_interrupt_trigger_ops = { -}; - static const struct iio_buffer_setup_ops atlas_buffer_setup_ops = { .postenable = atlas_buffer_postenable, .predisable = atlas_buffer_predisable, @@ -645,7 +642,6 @@ static int atlas_probe(struct i2c_client *client, data->client = client; data->trig = trig; data->chip = chip; - trig->ops = &atlas_interrupt_trigger_ops; iio_trigger_set_drvdata(trig, indio_dev); i2c_set_clientdata(client, indio_dev); From patchwork Sun Oct 31 14:21:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 12595151 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CF96C43217 for ; Sun, 31 Oct 2021 14:21:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7042D60FC1 for ; Sun, 31 Oct 2021 14:21:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbhJaOY2 (ORCPT ); Sun, 31 Oct 2021 10:24:28 -0400 Received: from www381.your-server.de ([78.46.137.84]:57598 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbhJaOY1 (ORCPT ); Sun, 31 Oct 2021 10:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=O3ER5VFArpWcEvdVfpuabWk6VNIUxNY+gVGSVjs6QN0=; b=R2ytcOm38G4xSI0Qw/Ku/m12Nf Nw5Nh6OL3vuUenvYWK7zRw64Qxz2WdH89UMHGxHvEdS8aEhIq7UIX1fL/Y+mSFAZ+04KiWIZ7gnHL 1Cb98V94/YkgdCqNIMg0G19EAzTKqNitLVtRUVLFDqbC2reDmd2OLYfWG9w5ldj3xnaPBecHaw0x7 AD9TKFow2RMNUP0AteiZxG8kIzwnPZF0t7KlAqt5iLHwUrYHC5Fi7DxfPsYgIuHuWsq7Q2evIRndz cZ5zOguHAhcKyN4r42CC+TFolisB3YJtWKFQEZAesRnKt5FAHHo60lY4Nw0O+Im1I0WnJ2Eb98fIv MskbWzRg==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mhBic-00069O-J5; Sun, 31 Oct 2021 15:21:54 +0100 Received: from [82.135.83.112] (helo=lars-desktop.fritz.box) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhBic-000F2T-CH; Sun, 31 Oct 2021 15:21:54 +0100 From: Lars-Peter Clausen To: Jonathan Cameron Cc: Michael Hennerich , Nuno Sa , Matt Ranostay , Linus Walleij , linux-iio@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 8/9] iio: gp2ap020a00f: Remove no-op trigger ops Date: Sun, 31 Oct 2021 15:21:29 +0100 Message-Id: <20211031142130.20791-8-lars@metafoo.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211031142130.20791-1-lars@metafoo.de> References: <20211031142130.20791-1-lars@metafoo.de> MIME-Version: 1.0 X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.3/26339/Sun Oct 31 09:18:16 2021) Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The IIO core handles a trigger ops with all NULL callbacks the same as if the trigger ops itself was NULL. Remove the empty trigger ops from the interrupt trigger driver to slightly reduce the boilerplate code. Object size of the driver module is also slightly reduced. Signed-off-by: Lars-Peter Clausen Acked-by: Linus Walleij --- drivers/iio/light/gp2ap020a00f.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/iio/light/gp2ap020a00f.c b/drivers/iio/light/gp2ap020a00f.c index d1d9f2d319e4..b820041159f7 100644 --- a/drivers/iio/light/gp2ap020a00f.c +++ b/drivers/iio/light/gp2ap020a00f.c @@ -1467,9 +1467,6 @@ static const struct iio_buffer_setup_ops gp2ap020a00f_buffer_setup_ops = { .predisable = &gp2ap020a00f_buffer_predisable, }; -static const struct iio_trigger_ops gp2ap020a00f_trigger_ops = { -}; - static int gp2ap020a00f_probe(struct i2c_client *client, const struct i2c_device_id *id) { @@ -1550,8 +1547,6 @@ static int gp2ap020a00f_probe(struct i2c_client *client, goto error_uninit_buffer; } - data->trig->ops = &gp2ap020a00f_trigger_ops; - init_irq_work(&data->work, gp2ap020a00f_iio_trigger_work); err = iio_trigger_register(data->trig); From patchwork Sun Oct 31 14:21:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 12595161 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0130C4167B for ; Sun, 31 Oct 2021 14:21:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C641361075 for ; Sun, 31 Oct 2021 14:21:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229898AbhJaOY3 (ORCPT ); Sun, 31 Oct 2021 10:24:29 -0400 Received: from www381.your-server.de ([78.46.137.84]:57602 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbhJaOY1 (ORCPT ); Sun, 31 Oct 2021 10:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=D6dUBrz9B7jarc4xBRjnUJZlGyYXPMil1WMjX+A2LUc=; b=QatdTpgh4ggKEkEBjZ28jpS8G0 hC9EndygaWzSBEXEDwoapcrGxpACOeMMYGFLEp+iH1lVyi8cTrpJWnpDbnGl0LFzB0DC/G/R44IHL Ff/Hb3yqap6yYHM+vq5V2L7kk7Fbsd02W2kYu4c6+IZSuUaxnWG619UNAiOCSjmNnnsk3fJd2evql +ZtnhUqnF6fpYlmtRIahBtnCL9X29DA1zaCKDWi+07qeoA4JXe1GLRbpR5jnukMKotgYPIkoqzNeu cDjuiytfwamZYekGH/ExqFAm+IPuu1g6SNwdfOKlMNsJTPgH8pxE/p4P2Gjvvo2KwwmtrYplZL9rS aWIfIIBg==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mhBic-00069V-Lm; Sun, 31 Oct 2021 15:21:54 +0100 Received: from [82.135.83.112] (helo=lars-desktop.fritz.box) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhBic-000F2T-En; Sun, 31 Oct 2021 15:21:54 +0100 From: Lars-Peter Clausen To: Jonathan Cameron Cc: Michael Hennerich , Nuno Sa , Matt Ranostay , Linus Walleij , linux-iio@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 9/9] iio: lmp91000: Remove no-op trigger ops Date: Sun, 31 Oct 2021 15:21:30 +0100 Message-Id: <20211031142130.20791-9-lars@metafoo.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211031142130.20791-1-lars@metafoo.de> References: <20211031142130.20791-1-lars@metafoo.de> MIME-Version: 1.0 X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.3/26339/Sun Oct 31 09:18:16 2021) Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The IIO core handles a trigger ops with all NULL callbacks the same as if the trigger ops itself was NULL. Remove the empty trigger ops from the interrupt trigger driver to slightly reduce the boilerplate code. Object size of the driver module is also slightly reduced. Signed-off-by: Lars-Peter Clausen --- drivers/iio/potentiostat/lmp91000.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/iio/potentiostat/lmp91000.c b/drivers/iio/potentiostat/lmp91000.c index ed30bdaa10ec..fe514f0b5506 100644 --- a/drivers/iio/potentiostat/lmp91000.c +++ b/drivers/iio/potentiostat/lmp91000.c @@ -271,9 +271,6 @@ static int lmp91000_buffer_cb(const void *val, void *private) return 0; } -static const struct iio_trigger_ops lmp91000_trigger_ops = { -}; - static int lmp91000_buffer_postenable(struct iio_dev *indio_dev) { struct lmp91000_data *data = iio_priv(indio_dev); @@ -330,7 +327,6 @@ static int lmp91000_probe(struct i2c_client *client, return -ENOMEM; } - data->trig->ops = &lmp91000_trigger_ops; init_completion(&data->completion); ret = lmp91000_read_config(data);