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: 9712451 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 A22C060362 for ; Thu, 4 May 2017 18:02:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A032728402 for ; Thu, 4 May 2017 18:02:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94D0428635; Thu, 4 May 2017 18:02:40 +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 2A14328402 for ; Thu, 4 May 2017 18:02:39 +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=GSZI/BQfu9fO9QpV8PB0DBC+DQG3Dq0U24FT5MOvr60=; b=RTJ5jMLG/jhXB4CT8w2LON/riY tkOmXkl2fUKcGgdM0NdfYaGwolLjqVr79luvkKt4T5wBR81tQORsZj1TVReS2ptUqSjSCpsDHIgJr MquhKMXuCL7NMx4fXTtuAg19lWOKQRWJv7GJKawLfck4R17MS4sfcbus+evOfiZx66wGp71rG17TL 8Cu3l8RqMFfQZi85K/QBIdUIDsf0mWVffYMgpe6/gmqyFqgFfAByMgMzhS9N4BGyRr3FH3UEKCfz5 E9Lm8hfarD2MjPhO/g/uQBKUhmzLLMAx/A5zbp0jBxli1GvckBIiR7VqDRF5Ir1kGN/k1/b05PdDt fDWKy9GA==; 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 1d6L5K-0000O6-0D; Thu, 04 May 2017 18:02:38 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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", };