From patchwork Mon Apr 17 18:28:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9684029 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 EE8BB600F6 for ; Mon, 17 Apr 2017 18:29:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4B8528174 for ; Mon, 17 Apr 2017 18:29:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D931B2817F; Mon, 17 Apr 2017 18:29: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=-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 6B02B28174 for ; Mon, 17 Apr 2017 18:29:15 +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=b84EmcysLPGrKa3xFSMJKJvRFlWcQK+GMr5Zc34VIVk=; b=u1FICgew7YiCpgTQya9gHagSCh DsV1bovtdnD4i2WgiFxtBhB3p6fs/U06c2VNkQr811hu/UMXf1a/EaN+OCF81ET0afjE6B8rfpOl7 5p32ZsVx5wEuV858G3ehX250g0QmAdvvo2Mf7AWGfvsCuH/wmuoiQd+jeBDp6c6wUXL9jztolzSwD i+Y7awGU99J3Wt5sxqhynO17JYJzi23TTiTqhE4Sx7PRDvUKkaiMUS5v2PcAPzzrDr0M8wW8EZHqX a43G7wwQx4apOsVEd2Pujg4v//3aGdjShSuCFrnz9YzBCwor9IFCHXegz7WcozCiji3RJ+6gLBAGH CQbMgSiQ==; 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 1d0BOk-0005uK-Ky; Mon, 17 Apr 2017 18:29:14 +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 1d0BOT-0005dX-Mm; Mon, 17 Apr 2017 18:29:00 +0000 Received: by mail-wr0-x242.google.com with SMTP id o21so21482050wrb.3; Mon, 17 Apr 2017 11:28:38 -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=SD7mdZThi1M+pb42gcknfNeMZgvTZC3iYCgOcp30X+o=; b=pmFKnML8+yImV+fVlQZj+7+bn4HNQYmtiRtiKXbbnlSKiz1t3Yy9wDpbW0H1tQed4n d6xMCW2Vjttfq1uaFGAwKaLjVC5p6QMTvsHCAhlai1DW1nc8z00xi81EXY8Dma7SE0Il Vm84yI97Nkl0DEMQ7/+xpEcBadtQQVXrcab9dNn569xws0b4d5xUKwfcbLrg6zzpN6WB xxiUvtGmSXjgP6VDthGydo4R6OOwMpq26UOsUeHlKQ6Cqw/udoliNL13y5dfHoLuI0Ml MeK392qZkWUAjk1fy9o2nvy32D9wKin9vLMIk2MO7PagViScysEKR2ejn1aDHzsxyMd8 SK6g== 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=SD7mdZThi1M+pb42gcknfNeMZgvTZC3iYCgOcp30X+o=; b=T0+l+XtcfCKiF8KRbj1saFzexfyqa7LX6HewoeVmkNxyimrGTPmMJTjKgtGdlm05WA Hc/1IiyYgImJBBA9K66JdpHLWgCRaNFjW6hHiQHHge1C0f89rX7eCJ8/hopXt8k4sDKb Bk2LLTTAoXG5tlSH7HAkxjbLhHJNjhejXbrtK8cfMkHJOc7kkxhAv+8qAwwnh9+A3tEi AuO/qFxmASFIN0R8oTKDp7ZuF05lq3O+DIj5CwL1ZNNZLhI2bo2r22EvQ5EXUzXoVFAY SRIbCLKklffNLKct++ql6qAsI69/kaxVOhpAEwMVye/O7LqDgYYllQWO7jbd01sJGvpP eHBg== X-Gm-Message-State: AN3rC/6A6davGLt7guwzTla7CEWkYK10IRzA0MKBXjb7TQyx2bwcbnen vS4T5L1lVJGZFw== X-Received: by 10.223.143.1 with SMTP id p1mr18125577wrb.120.1492453717191; Mon, 17 Apr 2017 11:28:37 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3CA7E045886EFA6B17A7A33.dip0.t-ipconnect.de. [2003:dc:d3ca:7e04:5886:efa6:b17a:7a33]) by smtp.googlemail.com with ESMTPSA id v14sm15354192wra.65.2017.04.17.11.28.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Apr 2017 11:28:36 -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 3/3] iio: adc: meson-saradc: mark all meson_sar_adc_data static and const Date: Mon, 17 Apr 2017 20:28:20 +0200 Message-Id: <20170417182820.26670-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170417182820.26670-1-martin.blumenstingl@googlemail.com> References: <20170417182820.26670-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170417_112857_949615_04E79338 X-CRM114-Status: UNSURE ( 8.24 ) 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c index cf13691009ee..8f742b71b165 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c @@ -843,31 +843,31 @@ static const struct iio_info meson_sar_adc_iio_info = { .driver_module = THIS_MODULE, }; -struct meson_sar_adc_data meson_sar_adc_meson8_data = { +static const struct meson_sar_adc_data meson_sar_adc_meson8_data = { .has_bl30_integration = false, .resolution = 10, .name = "meson-meson8b-saradc", }; -struct meson_sar_adc_data meson_sar_adc_meson8b_data = { +static const struct meson_sar_adc_data meson_sar_adc_meson8b_data = { .has_bl30_integration = false, .resolution = 10, .name = "meson-meson8b-saradc", }; -struct meson_sar_adc_data meson_sar_adc_gxbb_data = { +static const struct meson_sar_adc_data meson_sar_adc_gxbb_data = { .has_bl30_integration = true, .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 = { .has_bl30_integration = true, .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 = { .has_bl30_integration = true, .resolution = 12, .name = "meson-gxm-saradc",