From patchwork Sat Sep 22 22:21:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10611579 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AE3E514BD for ; Sat, 22 Sep 2018 22:21:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 994B82A8AF for ; Sat, 22 Sep 2018 22:21:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D68D2A8B6; Sat, 22 Sep 2018 22:21:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 202AA2A8AF for ; Sat, 22 Sep 2018 22:21:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725825AbeIWEQV (ORCPT ); Sun, 23 Sep 2018 00:16:21 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:39606 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725726AbeIWEQV (ORCPT ); Sun, 23 Sep 2018 00:16:21 -0400 Received: by mail-wm1-f65.google.com with SMTP id q8-v6so6567183wmq.4 for ; Sat, 22 Sep 2018 15:21:12 -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=dfhHIe8UNJec1GUqaQIcyYpqpcsDwezyicppcO+0mPg=; b=ApXxuGSbLDjUPgbk3yHQlCcNmrBM3xsxJYO49feENRniD+Z2jf8FC0I+8M+JzF2+U8 qtBCf30jjSqKF680Hx7iYhUOWkguAThtfPfKS7kb8stV2FvkVsqCOWJuqPcA8N82z/jA 8ImKUZfuG3srOVUY9suCAQyW8AjslWveLEPPNHXmBXnLfq8EJtBnuj+VzSH8DZvgB+qc CfFWUmIpiBLlsj+lXtipsKrFQP2TgKKVdO7BZdu7YvbEhGTFBZMZsitE1nuHFJqjU4X8 mANDiyszE2wXDmyFmMWzch860vQ0ET4GroniAoLMiFFVNtdVXBw6TUxl0KEmDpbwKKGY 8sPw== 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=dfhHIe8UNJec1GUqaQIcyYpqpcsDwezyicppcO+0mPg=; b=gtmyi4I07EPTJpHYuBjaSSYWldXc0SX/Me9zNE/xz9jVBXSSHveWP/3Skzp8oNGwKi 9hQTce/rrrHghOnNYN6zhnh5i/QoLeBjUw+FCwVsTKVyHLEBINKBa5BAE8REomVHkLoX 76+X7IsScilMKjzR1Kq8C0yExGuN2IOm5sq8N3x+gZbT+7nN+JLm1jXSyrRlJiFAl6xv bJVTBXo+zPBOQqIXlsEjBduNu4iN4kLGwnrq/4nujjnk2th6Nv0AX4n6Nq6SPGqbdC3k J8yMaDcShoqT5orN1zD7F/VdB3nE3v3a71pSHUEde7Cc2k/dKiofXb95CF436J+EdrgW G6Sg== X-Gm-Message-State: APzg51AGFOHEU/vJO2dS2A+FD9IljggL5ZPWr3MTKC4fuRMEcMx0CEtT nMWb98BH5BnJ7S7vNozrl/U= X-Google-Smtp-Source: ANB0VdZlYa6NLbgF2B+EiNBaJcbTSSHCyX7uHm6T/VIkSqwTooihenmHA7unem++R92BOxlOZFE6Tw== X-Received: by 2002:a1c:b441:: with SMTP id d62-v6mr2587161wmf.17.1537654871542; Sat, 22 Sep 2018 15:21:11 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD74AC30035FEEB5F4EC70873.dip0.t-ipconnect.de. [2003:dc:d74a:c300:35fe:eb5f:4ec7:873]) by smtp.googlemail.com with ESMTPSA id l16-v6sm6395499wmc.38.2018.09.22.15.21.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Sep 2018 15:21:10 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, linux-iio@vger.kernel.org Cc: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, Martin Blumenstingl Subject: [PATCH 1/3] iio: adc: meson-saradc: remove #define MESON_SAR_ADC_DELTA_10_TS_C_SHIFT Date: Sun, 23 Sep 2018 00:21:00 +0200 Message-Id: <20180922222102.12023-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180922222102.12023-1-martin.blumenstingl@googlemail.com> References: <20180922222102.12023-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This define is of no use because the driver is avoiding shifting bits by itself but using FIELD_GET/FIELD_PREP (which are using bit masks) instead. There is already a MESON_SAR_ADC_DELTA_10_TS_C_MASK bit mask so MESON_SAR_ADC_DELTA_10_TS_C_SHIFT was redundant. Signed-off-by: Martin Blumenstingl --- drivers/iio/adc/meson_saradc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c index da2d16dfa63e..b97b06bf7713 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c @@ -148,7 +148,6 @@ #define MESON_SAR_ADC_DELTA_10_TS_REVE1 BIT(26) #define MESON_SAR_ADC_DELTA_10_CHAN1_DELTA_VALUE_MASK GENMASK(25, 16) #define MESON_SAR_ADC_DELTA_10_TS_REVE0 BIT(15) - #define MESON_SAR_ADC_DELTA_10_TS_C_SHIFT 11 #define MESON_SAR_ADC_DELTA_10_TS_C_MASK GENMASK(14, 11) #define MESON_SAR_ADC_DELTA_10_TS_VBG_EN BIT(10) #define MESON_SAR_ADC_DELTA_10_CHAN0_DELTA_VALUE_MASK GENMASK(9, 0)