Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp360011pxb; Wed, 18 Aug 2021 04:14:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXXj2m+bBhCsamcWduEkqPrrcf788Oo9ZL8BlXU5bv6VqyALM/3RTSnADh8qBq/EVQjxLU X-Received: by 2002:a17:906:720e:: with SMTP id m14mr9110103ejk.500.1629285291926; Wed, 18 Aug 2021 04:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629285291; cv=none; d=google.com; s=arc-20160816; b=oKqgb5mm3mJEjj/WwWvCRxDQobLCel3GYvE2eMpPVeWZeUONU0/4VTqPMIdBpJoPr2 WhGgT+f5bZ/G5G0sw/32KTL+Rvq0uxZvS5ltD32BW4mXJxwTN4f58xkOXVm/8rXwmT0E mIzR9l9MxFwo5yKrfGECs1o0oeGCZKMc63gmw7NYnlSRSpfSelmXpMURHGeloXMB/P3N 67P9i8itMOH6k6ioNqWGII0KzS9PJrLz24o6dC/QlNLLvfmWQ2go9YQa9UQxrNXnMASG Yf16ohkeZGWQTdeI2knj9NpA2izmw3a9kuGkFxHWhXj73sP59V96cZxIVImKNTG1VJmg VXTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=CkNqsmbRH2BTfG7Wop0One5wllKVsE5X5bn9rg+04qI=; b=dHkrP/lzjSuKbEFfLrqE3dkSOueDyzVC15dKKuV0KXPamzkwetrVh84TcRR7Qi8yr1 itZt+MFVKsaJWMIXZ2dGRXkzwGkdoGzf4Hen4BwIlmb5qYr6WNTP1M9YQMXlidm3B3+l 10piO2y2U0if8NmZqjsF96NSbmAmIh/txzX3yfc2gFbUx/wGBDc/NRFV1NAIhCvPTZYl 4R5NXUpjMsHbzgrZsETJgHWRBRlf7pvDKQUhIWday5QIxhw2380wjrRR/bQ/IEz4mg3p 1qa6i87ua7ZMHz4d27js4WCbR3+/ZI/QhR7lfi3LfkHPoNT4yhB/NO8Hd0vUrHK7jarM cWOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si5322502ejd.610.2021.08.18.04.14.29; Wed, 18 Aug 2021 04:14:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235700AbhHRLNN (ORCPT + 99 others); Wed, 18 Aug 2021 07:13:13 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:50709 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235210AbhHRLMT (ORCPT ); Wed, 18 Aug 2021 07:12:19 -0400 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 0091660005; Wed, 18 Aug 2021 11:11:43 +0000 (UTC) From: Miquel Raynal To: Jonathan Cameron , Lars-Peter Clausen Cc: Thomas Petazzoni , linux-iio@vger.kernel.org, , Miquel Raynal Subject: [PATCH 06/16] iio: adc: max1027: Rename a helper Date: Wed, 18 Aug 2021 13:11:29 +0200 Message-Id: <20210818111139.330636-7-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210818111139.330636-1-miquel.raynal@bootlin.com> References: <20210818111139.330636-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make it clear that the *_set_trigger_state() hook is responsible for cnvst based conversions by renaming the helper. This may avoid confusions with software trigger support that is going to be introduced. Signed-off-by: Miquel Raynal --- drivers/iio/adc/max1027.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c index ac603b4ca787..a6ebc951c09a 100644 --- a/drivers/iio/adc/max1027.c +++ b/drivers/iio/adc/max1027.c @@ -354,7 +354,7 @@ static int max1027_validate_trigger(struct iio_dev *indio_dev, return 0; } -static int max1027_set_trigger_state(struct iio_trigger *trig, bool state) +static int max1027_set_cnvst_trigger_state(struct iio_trigger *trig, bool state) { struct iio_dev *indio_dev = iio_trigger_get_drvdata(trig); struct max1027_state *st = iio_priv(indio_dev); @@ -423,7 +423,7 @@ static irqreturn_t max1027_trigger_handler(int irq, void *private) static const struct iio_trigger_ops max1027_trigger_ops = { .validate_device = &iio_trigger_validate_own_device, - .set_trigger_state = &max1027_set_trigger_state, + .set_trigger_state = &max1027_set_cnvst_trigger_state, }; static const struct iio_info max1027_info = { -- 2.27.0