From patchwork Thu May 4 18:01:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9712461 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 2F5A060362 for ; Thu, 4 May 2017 18:03:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DC41286B5 for ; Thu, 4 May 2017 18:03:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 221CD286B6; Thu, 4 May 2017 18:03:10 +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 CB35D286BE for ; Thu, 4 May 2017 18:03:09 +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=WqZTSvie7I9J90VwPNaKdQuTjV1OQIhnVD4WjPL7eTA=; b=q/SmYTqiJcnSs+wiSx6nl5oSvP zeXyt0Qcwx5oxIOPNBjehnwQ02eZnpJGhIkv5vbyV2dhdi8Pww45FnF3mb5EaNQR38tc0OQYa72Cx Xmyi2jNj2wOmJcqwSq2+xkGD0sKje/GUqDVwKus2oNVI1NezWcWiASYAt6xs7AzAh+kSLpyjFOulM 02Pini9KD1OJiF0h6AOiLGVMdbHLreUY1hxD4snx4TkpUJ+2z33Q3jWyqvCPiJ3Rel0/AvDfDmpsY pQMhvp6FqZdGkpT6H1pmhaV3Q1QHOAX18a2fY06mZuhvMtVjnGR5jsNtlqGjxyOQtTc1oEt4C84rs dVgeVMZw==; 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 1d6L5Y-0000kj-Sf; Thu, 04 May 2017 18:02:52 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d6L52-0008QG-U2; Thu, 04 May 2017 18:02:22 +0000 Received: by mail-wm0-x242.google.com with SMTP id u65so4985250wmu.3; Thu, 04 May 2017 11:02:00 -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=D+UfAV8IuQtQYm0aBlV0Bhlat+Mc9dGsnrzIHalN6lA=; b=p/V09TpKq82lRUoZws72B4P9bmnGlK5/1hR2sRh2d365rMz8CsD2m/Mk8XkNqC+0I8 32AXOgUswcUYxfsTiC3n5NmwdhFkLJEB5Jeh++JK0uYDIx2on1+QZwI5yQ50jeLl44dL sQjJiIRaE7kyNcvGw8CCZ6wdyAxWnegm+WeRgnTM87kpnxWc4XNL/NzFRqzdqYx/39l1 sjmq2RbSXULHMtH+wwAC3t39K8ouyIgVt+9gJL6Hdmmi7SKDk05862PeKEa+6iGyVGIh eidzm+RFS2FCsdkB5N3VvTDqPym+0FKNTmbacZzF8Ut1CT2wV5sQRA33TElwKRF3t8+V dxvw== 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=D+UfAV8IuQtQYm0aBlV0Bhlat+Mc9dGsnrzIHalN6lA=; b=kFnXZFNbi5pCaHoGfBu4fMQnqo/1mjQmwRypx/EY/6qaKQCDh+iAu+e5NNitkRsphM dRQDIKQA2iYo/kNhVgGv6g7CTHmu+ykPcEcBsvI1Ha64j71ydcwmbzJ0H4/FoQ4giaQA dFKMT2x4u1z2WRg4N+YnLRFOC9/STS5c0tn95aLSOkflj+NQyys9Z92Lz88or7oZaYiV a6kAHO07wKIpzU0ixZmtsFJqE9fvSs/hCLqeW2jgTOPzlNlNF23QF5P0MOCheOYBndFH OL9WSvgb081JpgQtEF0S/xZiR7YWZIHVHP7XCxGdxOBPKcBXFdcjYFri6bC5z+rMrm6p RIDg== X-Gm-Message-State: AN3rC/7s7cVMkx9gjsPCFfYNuX4cyZjp1Tmvk388ma3TMrYv9St1xXfH EdLXkC0imSJrIw== X-Received: by 10.28.180.196 with SMTP id d187mr2685452wmf.137.1493920919088; Thu, 04 May 2017 11:01:59 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3F23104E1FBC614D4FACDED.dip0.t-ipconnect.de. [2003:dc:d3f2:3104:e1fb:c614:d4fa:cded]) by smtp.googlemail.com with ESMTPSA id j71sm2550098wmd.12.2017.05.04.11.01.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 May 2017 11:01:58 -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 v3 1/3] iio: adc: meson-saradc: mark all meson_sar_adc_data static and const Date: Thu, 4 May 2017 20:01:34 +0200 Message-Id: <20170504180136.27025-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170504180136.27025-1-martin.blumenstingl@googlemail.com> References: <20170504180136.27025-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170504_110221_133015_3A0D0CC0 X-CRM114-Status: UNSURE ( 8.39 ) 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, 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..1cb5df306001 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 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 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 struct meson_sar_adc_data meson_sar_adc_gxm_data = { .resolution = 12, .name = "meson-gxm-saradc", };