From patchwork Sun Aug 10 08:22:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kiran padwal X-Patchwork-Id: 4704071 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 37542C0338 for ; Sun, 10 Aug 2014 08:32:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5F9C32015E for ; Sun, 10 Aug 2014 08:32:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9818E2015D for ; Sun, 10 Aug 2014 08:32:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XGOVy-0006HX-Tj; Sun, 10 Aug 2014 08:30:06 +0000 Received: from mail-pd0-x233.google.com ([2607:f8b0:400e:c02::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XGOVw-0005Bj-2q for linux-arm-kernel@lists.infradead.org; Sun, 10 Aug 2014 08:30:04 +0000 Received: by mail-pd0-f179.google.com with SMTP id v10so3255751pde.10 for ; Sun, 10 Aug 2014 01:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=9/cFgONfsNFx6UJuQ7BJigSlf2gIk0NsR2DiTnYobyo=; b=XzDH1pDmsV+IayotXsqYstL0LST/K3WRxPgqIS7BdCb+myampe9jHRNZvOCU174/tj mlKIwu5tqUzwmpAsFVb4KRhA5HJkwcAp5WrXfEcB5TyqV0PUjhUCNZcgbtixzNs7C63Y HKIJHlhd8+IoAhVu0iS83bYNuiRpSQnRT4Ix4f3gFXqgpjter/j0piYacm7wSi9JUeJ9 R/lFT/m9g8+WdY56gtTY90TjUUeOR5daHEZQGEtpC7bpSEARlc919XzTadZ/ARhH4DD2 1mn1asRx/X/qVLGdIHA6LgdtcJ6BAZnIiSPWkMSu0vZMAveX4RD5+ontzjQz7p5J0yUI 3AWw== X-Received: by 10.68.69.7 with SMTP id a7mr34537721pbu.49.1407658975240; Sun, 10 Aug 2014 01:22:55 -0700 (PDT) Received: from localhost.localdomain ([182.156.15.18]) by mx.google.com with ESMTPSA id wt2sm7870491pbc.93.2014.08.10.01.22.48 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 10 Aug 2014 01:22:54 -0700 (PDT) From: Kiran Padwal To: mturquette@linaro.org, gabriel.fernandez@st.com Subject: [PATCH 1/3] clk: st: clkgen-mux: Make of_device_id array const Date: Sun, 10 Aug 2014 13:52:19 +0530 Message-Id: <1407658939-1458-1-git-send-email-kiran.padwal21@gmail.com> X-Mailer: git-send-email 1.7.0.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140810_013004_157479_7B1D3688 X-CRM114-Status: GOOD ( 10.60 ) X-Spam-Score: -0.6 (/) Cc: kiran.padwal21@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, galak@codeaurora.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Kiran Padwal --- drivers/clk/st/clkgen-mux.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/st/clkgen-mux.c b/drivers/clk/st/clkgen-mux.c index 79dc40b..bed5ef8 100644 --- a/drivers/clk/st/clkgen-mux.c +++ b/drivers/clk/st/clkgen-mux.c @@ -341,7 +341,7 @@ static struct clkgena_divmux_data st_divmux_c32odf3 = { .fb_start_bit_idx = 24, }; -static struct of_device_id clkgena_divmux_of_match[] = { +static const struct of_device_id clkgena_divmux_of_match[] = { { .compatible = "st,clkgena-divmux-c65-hs", .data = &st_divmux_c65hs, @@ -479,7 +479,7 @@ static struct clkgena_prediv_data prediv_c32_data = { .table = prediv_table16, }; -static struct of_device_id clkgena_prediv_of_match[] = { +static const struct of_device_id clkgena_prediv_of_match[] = { { .compatible = "st,clkgena-prediv-c65", .data = &prediv_c65_data }, { .compatible = "st,clkgena-prediv-c32", .data = &prediv_c32_data }, {} @@ -586,7 +586,7 @@ static struct clkgen_mux_data stih407_a9_mux_data = { .width = 2, }; -static struct of_device_id mux_of_match[] = { +static const struct of_device_id mux_of_match[] = { { .compatible = "st,stih416-clkgenc-vcc-hd", .data = &clkgen_mux_c_vcc_hd_416, @@ -693,7 +693,7 @@ static struct clkgen_vcc_data st_clkgenf_vcc_416 = { .lock = &clkgenf_lock, }; -static struct of_device_id vcc_of_match[] = { +static const struct of_device_id vcc_of_match[] = { { .compatible = "st,stih416-clkgenc", .data = &st_clkgenc_vcc_416 }, { .compatible = "st,stih416-clkgenf", .data = &st_clkgenf_vcc_416 }, {}