From patchwork Sat Jul 17 23:37:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 12384079 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 E16E4C636CA for ; Sat, 17 Jul 2021 23:37:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AC95A61153 for ; Sat, 17 Jul 2021 23:37:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC95A61153 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dUBh/w2fKeM2ODC0L/mk5q3dT2qxzN8650zoWQLf/Lw=; b=HZq1/De3yVqFHm GKdNDaVL+pWTFFqkcQ6y41UOQmGc1f+Mn0DxkC22StxE3tPG7zeFj4FK1sE5ikIhZO7RvgDh1Lqjs uCUpv8YhKxAhFqGf61W46YfY0SN3p7KSM5L5gr2PvAW5AMtRptLqoPjN2HHxSo3Uu3Sqen2a7Ai/R vRFgsyYpTxiBT3340gXnbwJgoQxEgXZ17OPTg0MsjKrF+VoUkcNSkkdqISecxk2CYDueEkFNdXo1u NBOpSdmg0um0hexbKN2o+yhFwdvpvBh43UjxVXy3sD2Nag6ataIJIcuGdYCiwmjcOtZuDgAE1h3Hf uH1A8v6XLSWxhzeItGrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4tsR-0079le-P5; Sat, 17 Jul 2021 23:37:47 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4tsC-0079gh-1z; Sat, 17 Jul 2021 23:37:33 +0000 Received: by mail-wr1-x42b.google.com with SMTP id g16so16528024wrw.5; Sat, 17 Jul 2021 16:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=REQGLBJXt02T4HQW9YuEzMSqSjnRxM4DXHv1UWuNok0=; b=d12ID/+85BXhYp5lVxcM3+av/sgR1fUzvi31SIskiUqnbkoZYeOFeiRcMcoEYgztLz FwsxANXuvZ+IT5l9zr/eziTHJmqij97HqEZAUtNb1NTWYoJVLvn5jKvYccf1cJ0pZPEg Okgf3LPve3p+EXVZ86avEGkjxPsWI/Bg82ZVRjOkfYslrhCJaFvYoGRGy1nYef2zKp+Z bUS6ssLrMgOJIgYDOIYaxWgr8Bsnc2IlPl1g2kBuC1GT6sbZlGZcLwyAiSbXUbLbrSMK +gtz+p6TO24EXkceOVg3+3fkfiTlF+eKoro/sj++oLshKXC6gKZFuehJ0kFpDXA2AzeM Aaqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=REQGLBJXt02T4HQW9YuEzMSqSjnRxM4DXHv1UWuNok0=; b=BuM6mi4Xq3dtWdKqmTbO2iBxrlKgAphjKgHKyciqZ/mbXRfwVTP5hz3iuCeD/mg8Zk plY5i+ecV2dev2T+psVK1TXMy+E03vBBnwTbr3KBfmcQp38glxmm6Plo1zjtkQNPds7J 6AxQhXKxKbI88sHObM/v+4QvVwIkLwmKP770t3hfBaH/XVy8cxXwLSZpGGvX7yX4AZay +IFpD7mu44U0G976d2Ox0v5o/0KoQ3cgAvtn/DzmwJhQiF8ZhuazGYTcPdTTD1X2lAJj HsHPB7TehqscRYXAmGbquZM2qBtAmCQZ2tIgh/o/oikCg+3ziz3cnfbN62/hjH7oYdGV NCgQ== X-Gm-Message-State: AOAM532rAQ4HoILt248fKVNJsteVORjgTAIvgiQ4RarllAbRN5rjloVg c7E2H4cZUc+XYNrXebtPDO8= X-Google-Smtp-Source: ABdhPJyvf4zkAdXPasJYccDCqPa6lAGLKbFDFJmYoATC615OxyRHoI/KcyT2yzw3/QpGo/AYVELy+g== X-Received: by 2002:a5d:59ad:: with SMTP id p13mr21145793wrr.139.1626565050573; Sat, 17 Jul 2021 16:37:30 -0700 (PDT) Received: from localhost.localdomain (dynamic-2a01-0c22-7602-4e00-f22f-74ff-fe21-0725.c22.pool.telefonica.de. [2a01:c22:7602:4e00:f22f:74ff:fe21:725]) by smtp.googlemail.com with ESMTPSA id q7sm12347527wmq.33.2021.07.17.16.37.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jul 2021 16:37:30 -0700 (PDT) From: Martin Blumenstingl To: linux-iio@vger.kernel.org, linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, lars@metafoo.de, jic23@kernel.org, Martin Blumenstingl Subject: [PATCH 1/3] iio: adc: meson-saradc: Disable BL30 integration on G12A and newer SoCs Date: Sun, 18 Jul 2021 01:37:16 +0200 Message-Id: <20210717233718.332267-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210717233718.332267-1-martin.blumenstingl@googlemail.com> References: <20210717233718.332267-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210717_163732_138497_9895B1F4 X-CRM114-Status: GOOD ( 12.85 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org G12A and newer don't use the SAR ADC to read the SoC temperature from within the firmware. Instead there's now a dedicated thermal sensor. Disable the BL30 integration for G12A and newer SoCs to save a few CPU cycles when reading samples. Adding a separate struct meson_sar_adc_data is a good idea anyways because starting with G12A there's some extra registers to read the samples in a simplified way. Signed-off-by: Martin Blumenstingl --- drivers/iio/adc/meson_saradc.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c index 66dc452d643a..e140db3e4016 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c @@ -1104,6 +1104,14 @@ static const struct meson_sar_adc_param meson_sar_adc_gxl_param = { .resolution = 12, }; +static const struct meson_sar_adc_param meson_sar_adc_g12a_param = { + .has_bl30_integration = false, + .clock_rate = 1200000, + .bandgap_reg = MESON_SAR_ADC_REG11, + .regmap_config = &meson_sar_adc_regmap_config_gxbb, + .resolution = 12, +}; + static const struct meson_sar_adc_data meson_sar_adc_meson8_data = { .param = &meson_sar_adc_meson8_param, .name = "meson-meson8-saradc", @@ -1140,7 +1148,7 @@ static const struct meson_sar_adc_data meson_sar_adc_axg_data = { }; static const struct meson_sar_adc_data meson_sar_adc_g12a_data = { - .param = &meson_sar_adc_gxl_param, + .param = &meson_sar_adc_g12a_param, .name = "meson-g12a-saradc", }; From patchwork Sat Jul 17 23:37:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 12384081 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 011FDC636CA for ; Sat, 17 Jul 2021 23:38:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C583D61153 for ; Sat, 17 Jul 2021 23:38:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C583D61153 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=I1/JG/6CcyVCUx3GL7a10WAa4+hC/UkaLRYq6W6c01M=; b=aR0qhqmz8QUjDF MA8lUWKOmH53UM2xfcYQnIzvkEr0DLgES2qU44OmEX56DAIgDs1p9/wZBqKGCfUBD8LOtmjEziv72 3U0AHYLn+ebklXJWFkKxOdweAWnM+8TQMZpZnWNs4znmhkXL7cbbZAAkNiOkx4x57pT7nlOdVkOHX qk1CY+S+ARzm7pJBr2X3WRYhu/hFDNEBU8EeTC6hwQip1HfK58ON2SPKB6WtnrxNyf7HduM/jsbmv g3B8HGw+9CT6dMC6O4PrWSDfr2nR68mFCnrAViFZ9nGYAZrU9/3xqOQDE2EAdZhWg1Ng9dUWcxuro jgCrcIFydv2btYRL+nnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4tse-0079q6-Lh; Sat, 17 Jul 2021 23:38:00 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4tsC-0079gv-PN; Sat, 17 Jul 2021 23:37:34 +0000 Received: by mail-wm1-x32c.google.com with SMTP id q18-20020a1ce9120000b02901f259f3a250so8085190wmc.2; Sat, 17 Jul 2021 16:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=w4Deofgk9HydoSwsSwYhSOQ6AZsKWmThrjuDOLQIJSI=; b=tTHN8RTiCkN/u7Gbn97q4JpAMsasfakEr/B3J8YpXz9hfM9fty/H+aGOKk5jp2g0Tp 12Zb6Vx1XHpRvm1DTeRYTZfar4rF85rfb7Kzj3srhwVnfsfiG9df7rHWHtalo1bW57dv aCUOOWHPWC3rnfAFSp8aAuxn6UubejdrhndpyCBFspbQZLRM2ZKbGCvXruQcKYNt2Rkq v7oO5j0HGGMqDJr7dnRkVy5+rvc4l7GXpRmj4wAAVsY8g+SiTk/BoGoJ11ox7Rp4mmxn O4KQdExtxE2myqpI3hsOcocHYc7mUib7GFTZaFanybABokArmzPFMmxmkfhaiFvR1AoZ 0kgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=w4Deofgk9HydoSwsSwYhSOQ6AZsKWmThrjuDOLQIJSI=; b=UMno9O5sjEBTKau/AHW8ZBjacRO/acALLirZEVB0IdaaL9PVabXuGMCzprEwCLVzlG ciZeGMt/O6uJitUZPYuuMOFRxKFO3tUxi8h6CSXjw7FI0z2yubckbB1k4WHAbOuCjoRX JRHBEnz/+1yzZBO6hbjhpeCWl5YvJigAMVoqxPBzidPHpDcCD2NsHRoF/kuBjV2EZDYq +9GX3VKkl5QKOqs02fyB4EBcPewAaEV87IK3lsI8nhyTHplCYTRcJTxk2bLK6sDyhPWQ B0MRz7wGyAykTJSJoUnC+DRZoOwoG/ONGKDSVeaJ2G5jEYwhrJod7IrkGt8waDSk/6pM ahoA== X-Gm-Message-State: AOAM531BkeVEV0axgs+zJmDCGCvNXCek8f3QxkUfMq7cXW25ZRHt56cx 25EloRwQ/v9eMaVK7F3DRzFIgCC1jbM= X-Google-Smtp-Source: ABdhPJwraMU1GDmwhidsRZxMlU3RDNSzTZ2alCY2KohjN9YprNOVczppy8RoAv0EuRw77Hg9HkzYMg== X-Received: by 2002:a7b:cd15:: with SMTP id f21mr18955629wmj.148.1626565051265; Sat, 17 Jul 2021 16:37:31 -0700 (PDT) Received: from localhost.localdomain (dynamic-2a01-0c22-7602-4e00-f22f-74ff-fe21-0725.c22.pool.telefonica.de. [2a01:c22:7602:4e00:f22f:74ff:fe21:725]) by smtp.googlemail.com with ESMTPSA id q7sm12347527wmq.33.2021.07.17.16.37.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jul 2021 16:37:31 -0700 (PDT) From: Martin Blumenstingl To: linux-iio@vger.kernel.org, linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, lars@metafoo.de, jic23@kernel.org, Martin Blumenstingl Subject: [PATCH 2/3] iio: adc: meson-saradc: Add missing space between if and parenthesis Date: Sun, 18 Jul 2021 01:37:17 +0200 Message-Id: <20210717233718.332267-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210717233718.332267-1-martin.blumenstingl@googlemail.com> References: <20210717233718.332267-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210717_163732_863414_80DCF90D X-CRM114-Status: GOOD ( 12.64 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Add a missing space between if and the opening parenthesis to make the coding style consistent across the whole driver. No functional changes intended. Signed-off-by: Martin Blumenstingl --- drivers/iio/adc/meson_saradc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c index e140db3e4016..b4e16f2e957f 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c @@ -347,7 +347,7 @@ static int meson_sar_adc_read_raw_sample(struct iio_dev *indio_dev, struct meson_sar_adc_priv *priv = iio_priv(indio_dev); int regval, fifo_chan, fifo_val, count; - if(!wait_for_completion_timeout(&priv->done, + if (!wait_for_completion_timeout(&priv->done, msecs_to_jiffies(MESON_SAR_ADC_TIMEOUT))) return -ETIMEDOUT; From patchwork Sat Jul 17 23:37:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 12384099 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 6BEBFC636CA for ; Sat, 17 Jul 2021 23:38:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2E9FA61153 for ; Sat, 17 Jul 2021 23:38:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2E9FA61153 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hMfMVe71aGY09IIrBUQwOf5q94lSa3gYurpFxhVK8fM=; b=AP5nQJxxkUsMaV aJldqmT5ezN/lT5qH/wRSyNh0ZObGQpGtD7bNEVB1TXTzS3qcYtmFc3MrcANwZ7Pf6XsRQqGzqeBo O4xzwMSAkiae4VGaPl2XUOr2sLY0s/XtelNkvhoJYzQGn23UThBqAwOR0WQV7KVUdxp50b/g6787q h392GUY9s7YgEijaBkb5xQ2hRlQDhv/C2RD+6JNFDfTTiKFqZeDd3eSMZw+F4+uqNZPQ7mWanf4e2 6NVFqgsa4jzFUSqKyb9bsVqFC+hAHYDWyM6OqGtQDEwajVDNXvKZSuEbgJW13dsoVnNsf4YEmf1j3 W+Asa14t/uCJiumYCE6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4tsu-0079wE-Lr; Sat, 17 Jul 2021 23:38:16 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4tsD-0079hD-HS; Sat, 17 Jul 2021 23:37:34 +0000 Received: by mail-wr1-x42c.google.com with SMTP id g16so16528060wrw.5; Sat, 17 Jul 2021 16:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XT3dSBF1T+xb0vIDoCrx2w6ZTm5g1KZ+GveMuxTzekE=; b=CtXz2OYi/GCxjfmSsp1YKE9LnoDSnkeBX/+cM0CqBTWLFyQ6l+6dF7g0GALhl5vFip bB1RIaGem2FXKgNiq5DFd/DPWKamLAy953PR8qpNsuuHn+CCMqud62IDqI2tgLVcNVJL pqiUeR/+krg7X5p1lecyAvFwM5jkR75NGg6E5w+CQb1NJ9sbUYwh+ep4qbz61fVvxMJp TcSgS/GtSGwi5iDDi8i26O8rXG9dnoxKH7P/myimGPxHn9jsUFuERMigxDKxjx9wQWSW v8eZgG05pDqFZaqWIbBJC5A9z6GV2VeemXuFYPhFjx3Pr9A3KDKuqhML1I7a9D5eavp+ fGEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XT3dSBF1T+xb0vIDoCrx2w6ZTm5g1KZ+GveMuxTzekE=; b=Yysg/t3e+4Nk0T7wGpr9BCvZ2sq4WplSqM4lNbx49Eo0U/b+HnI1fn7QEKrrS0YZSp Lbm+u3VsGG5VWQ8jjhJUpx2ZBqS/AauMkSnTXSJjfe9c00vjj2g3dExbWy84OKgGk1lB iKfcPtDg/lTuFw0ZtwoQXPV3saUrP1dRtwyPblpeArFpkcB9FuWZ84OjNOz4j1LSqQOF VUJOIwpamOfgDIsr6BagW1EZY/ENKgPnDav8Pzy7XQsV992Fj3hQ5k7tW5E4jeyCZB+v dRMK4UIFuF7OFYNFZtcnvQajc+dbAF2skpyPZgekx3TSJtTpL841WR29Ure1LMOq4wC+ 2lXg== X-Gm-Message-State: AOAM532oATc2YTrwd+THEEF2upd6hxN+61o/Doym3grcgYmdOHi5rI3F sQx1/jM+8UgrkFFl4Hrqq9U= X-Google-Smtp-Source: ABdhPJyMHQezFPPUSmeL1JZrcqZFIjqXhH77/GR5QaHIt7RRb8WSy+hK7rcUeEv/o/KOCoaagS0qRw== X-Received: by 2002:a5d:5141:: with SMTP id u1mr21346802wrt.193.1626565052070; Sat, 17 Jul 2021 16:37:32 -0700 (PDT) Received: from localhost.localdomain (dynamic-2a01-0c22-7602-4e00-f22f-74ff-fe21-0725.c22.pool.telefonica.de. [2a01:c22:7602:4e00:f22f:74ff:fe21:725]) by smtp.googlemail.com with ESMTPSA id q7sm12347527wmq.33.2021.07.17.16.37.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jul 2021 16:37:31 -0700 (PDT) From: Martin Blumenstingl To: linux-iio@vger.kernel.org, linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, lars@metafoo.de, jic23@kernel.org, Martin Blumenstingl Subject: [PATCH 3/3] iio: adc: meson-saradc: Fix indentation of arguments after a line-break Date: Sun, 18 Jul 2021 01:37:18 +0200 Message-Id: <20210717233718.332267-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210717233718.332267-1-martin.blumenstingl@googlemail.com> References: <20210717233718.332267-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210717_163733_619351_D790FB5D X-CRM114-Status: GOOD ( 13.64 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Align the function arguments after a line-break with the opening parenthesis on the previous line. No functional changes intended. Signed-off-by: Martin Blumenstingl --- drivers/iio/adc/meson_saradc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c index b4e16f2e957f..705d5e11a54b 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c @@ -497,8 +497,8 @@ static int meson_sar_adc_lock(struct iio_dev *indio_dev) if (priv->param->has_bl30_integration) { /* prevent BL30 from using the SAR ADC while we are using it */ regmap_update_bits(priv->regmap, MESON_SAR_ADC_DELAY, - MESON_SAR_ADC_DELAY_KERNEL_BUSY, - MESON_SAR_ADC_DELAY_KERNEL_BUSY); + MESON_SAR_ADC_DELAY_KERNEL_BUSY, + MESON_SAR_ADC_DELAY_KERNEL_BUSY); /* * wait until BL30 releases it's lock (so we can use the SAR @@ -525,7 +525,7 @@ static void meson_sar_adc_unlock(struct iio_dev *indio_dev) if (priv->param->has_bl30_integration) /* allow BL30 to use the SAR ADC again */ regmap_update_bits(priv->regmap, MESON_SAR_ADC_DELAY, - MESON_SAR_ADC_DELAY_KERNEL_BUSY, 0); + MESON_SAR_ADC_DELAY_KERNEL_BUSY, 0); mutex_unlock(&indio_dev->mlock); } @@ -791,7 +791,7 @@ static int meson_sar_adc_init(struct iio_dev *indio_dev) * on the vendor driver), which we don't support at the moment. */ regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG0, - MESON_SAR_ADC_REG0_ADC_TEMP_SEN_SEL, 0); + MESON_SAR_ADC_REG0_ADC_TEMP_SEN_SEL, 0); /* disable all channels by default */ regmap_write(priv->regmap, MESON_SAR_ADC_CHAN_LIST, 0x0);