From patchwork Sat May 6 13:49:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9714853 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C557160362 for ; Sat, 6 May 2017 13:56:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3FE828613 for ; Sat, 6 May 2017 13:56:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5F0128675; Sat, 6 May 2017 13:56:28 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 48CD428613 for ; Sat, 6 May 2017 13:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=DeVZS2XIJMegx2VenOq/sDKt3A+H0Lav93UAH+enSqc=; b=Z27SVaxuyUwUXQU6t4aItJqqNd YAwqS2yWnRztDVWiC/tpBnVIIaiwooXhGhH7vB8NCx3WANeqB3xdtAkAAfyC6M4otmi8w4ygSuDDC 7XWldG/5+eFhlbF9CB+oG8cQk4JSOcr8wf+lCbat0mLoPtP1JXDQmnNLG+yxBW8SczbnCbaNl+LQR IKF26VfzCC6e4eZcsvXFoS/EgHvhE/B7DpI22CptVjIXe5X1ktb6BQWw/lTiEf/wmYCUR4laSM6I5 aYU4SPafvth/ALqj5gPuc0kAEaLmFus0njjpZ8FBkUrQi3OzrUAPUv6EEDtyTVTAs4wNVi9N+68EG migGWn2A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d70C8-0006vg-1P; Sat, 06 May 2017 13:56:24 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d706G-0001hw-6j; Sat, 06 May 2017 13:50:22 +0000 Received: by mail-wr0-x242.google.com with SMTP id 6so3129064wrb.1; Sat, 06 May 2017 06:49:59 -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; bh=KPXT/iWszF6F/zU0PUKSL3MZ3nTMBG43CLMvnLSxJUM=; b=nwgHpuoZtGt0diZsoNFxf/bipCgsUKIbdpSUqK9S1sIEVyXxnpXcWwtyjCpBnEs0xu Qi9QRbHjt4dcHWzQyVLrR2Pr5KNIvBh2raihfqyko8W6uJ5wHliAXhkdBVDZrshOc14i sD9ctu9w5E8ql4wqS3zyyIxqVq6jyz9F9uXDPJpLmGXID2lzuCHs1QGK7fyGrsZtqxSl 7ZJ96D6i+noUpSkmDxm6S9LpEyBuYjiyNuWT363OFSj/oQZiWuLFFFQIExAgIfJsyUC1 tTwBcxG3yg7m6tjQs/e1EonZrM8acMK3OUifBr2wmoI5t02eVsOP6uopfLTZsJpfphSW ieZA== 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; bh=KPXT/iWszF6F/zU0PUKSL3MZ3nTMBG43CLMvnLSxJUM=; b=XmMJDb/tASAm+dDbgrJpUddcawUMu3iBjR+eLnf8hqywBXcghJS5T9H813Jaqyg3vO hmiFV0VFutZzp4qAsHFqTfSDn8rxingMlWlAJuP3B4vZ4G2ZbjfTTxAgBNTsBgZbJI+5 5yeuKdnvL5AYxcJ4AsbtFeABYjrQBddpVTDW07Ls+YEh5PecY2QFvk0F3iAy/YGQ+QvI Bb2SLrcomI50ewti06SQ1ekz4QozxkjD0iaAVHZyva3+0jffrClvvXiynWxZlkWel2ZN JSqROpJ583M+8mVIuGO494aQc9CpY04v0AZlN8X54X7xE5Wf2okZ3xrLp8dCmzjd7nqd cyoA== X-Gm-Message-State: AN3rC/5U7cxP2BHJTol8qFBJ96/qZhXxiXvobt57eJz8i/iMby/LTqVp sTSPvQB/reGM9A== X-Received: by 10.223.163.21 with SMTP id c21mr28577159wrb.38.1494078598456; Sat, 06 May 2017 06:49:58 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3E78B041DCA91B6F8D469E4.dip0.t-ipconnect.de. [2003:dc:d3e7:8b04:1dca:91b6:f8d4:69e4]) by smtp.googlemail.com with ESMTPSA id k7sm9291955wrk.45.2017.05.06.06.49.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 May 2017 06:49:57 -0700 (PDT) From: Martin Blumenstingl To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, robh+dt@kernel.org, mark.rutland@arm.com, linux-iio@vger.kernel.org Subject: [PATCH v4 1/3] iio: adc: meson-saradc: mark all meson_sar_adc_data static and const Date: Sat, 6 May 2017 15:49:27 +0200 Message-Id: <20170506134929.31190-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170506134929.31190-1-martin.blumenstingl@googlemail.com> References: <20170506134929.31190-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170506_065020_429655_959311D7 X-CRM114-Status: UNSURE ( 7.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Martin Blumenstingl , khilman@baylibre.com, thomas.langer@intel.com, carlo@caione.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP These are only passed as of_device_id.data and never modified. Thus we can mark them as static const, just like the of_device_id instances where they are used. Signed-off-by: Martin Blumenstingl --- drivers/iio/adc/meson_saradc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c index dd4190b50df6..2f6fec995264 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c @@ -834,17 +834,17 @@ static const struct iio_info meson_sar_adc_iio_info = { .driver_module = THIS_MODULE, }; -struct meson_sar_adc_data meson_sar_adc_gxbb_data = { +static const struct meson_sar_adc_data meson_sar_adc_gxbb_data = { .resolution = 10, .name = "meson-gxbb-saradc", }; -struct meson_sar_adc_data meson_sar_adc_gxl_data = { +static const struct meson_sar_adc_data meson_sar_adc_gxl_data = { .resolution = 12, .name = "meson-gxl-saradc", }; -struct meson_sar_adc_data meson_sar_adc_gxm_data = { +static const struct meson_sar_adc_data meson_sar_adc_gxm_data = { .resolution = 12, .name = "meson-gxm-saradc", };