From patchwork Tue Feb 3 11:06:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5767681 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7CA44BF440 for ; Tue, 3 Feb 2015 11:06:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ACF21204E3 for ; Tue, 3 Feb 2015 11:06:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BA07720498 for ; Tue, 3 Feb 2015 11:06:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933302AbbBCLGz (ORCPT ); Tue, 3 Feb 2015 06:06:55 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:31905 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933269AbbBCLGz (ORCPT ); Tue, 3 Feb 2015 06:06:55 -0500 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NJ700MWM0E8LQ80@mailout3.w1.samsung.com>; Tue, 03 Feb 2015 11:10:56 +0000 (GMT) X-AuditID: cbfec7f5-b7fc86d0000066b7-57-54d0ab3aefdc Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id F3.2D.26295.A3BA0D45; Tue, 03 Feb 2015 11:04:26 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NJ700KZ707C4X10@eusync1.samsung.com>; Tue, 03 Feb 2015 11:06:52 +0000 (GMT) From: Krzysztof Kozlowski To: Russell King , Kukjin Kim , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 2/3] ARM: EXYNOS: Constify exynos_pm_data and of_device_id array Date: Tue, 03 Feb 2015 12:06:40 +0100 Message-id: <1422961601-7087-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1422961601-7087-1-git-send-email-k.kozlowski@samsung.com> References: <1422961601-7087-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHJMWRmVeSWpSXmKPExsVy+t/xy7pWqy+EGHS0sVi8fmFo0f/4NbPF psfXWC0u75rDZjHj/D4mi9uXeR3YPFqae9g8Nq3qZPPYvKTeo2/LKkaPz5vkAlijuGxSUnMy y1KL9O0SuDI+32hiLNjDWbFuIk8D4y/2LkZODgkBE4mvTX9ZIWwxiQv31rN1MXJxCAksZZR4 9/45O4TTxyQx//hBNpAqNgFjic3Ll4BViQhsZpTob9wN1s4sYCjx890fsLHCAqESs09vZQGx WQRUJRZvnQ8W5xVwk+j7vJ8FYp2cxMljk8F6OQXcJZ7t6WMCsYWAas5+6GGbwMi7gJFhFaNo amlyQXFSeq6RXnFibnFpXrpecn7uJkZIGH3dwbj0mNUhRgEORiUe3p1fz4cIsSaWFVfmHmKU 4GBWEuFNX34hRIg3JbGyKrUoP76oNCe1+BAjEwenVAOjqXfQrgz1o7tnnesr+K8Q1jgp5Z/z Ja6qY5PFeDR52rpiA6cavDh93eNyetEsi0slN65Oe7bgRSXztnM317zzuLFWSVu5IlGX5a/q OsG/2sv5lIUca4UKN2s8aW+uvxn546eg0GOZCy2cHtFaxRtFZmbFXor3nORrWcAh6srU4SIv ICxxy0uJpTgj0VCLuag4EQBUvn9cAQIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 The 'exynos5420_pm_data' and of_device_id array are not modified and can be made const. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Pankaj Dubey --- Changes since v1: 1. New patch. --- arch/arm/mach-exynos/suspend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/suspend.c b/arch/arm/mach-exynos/suspend.c index 77cc39bdad47..e6c961126087 100644 --- a/arch/arm/mach-exynos/suspend.c +++ b/arch/arm/mach-exynos/suspend.c @@ -572,7 +572,7 @@ static const struct exynos_pm_data exynos5250_pm_data = { .cpu_suspend = exynos_cpu_suspend, }; -static struct exynos_pm_data exynos5420_pm_data = { +static const struct exynos_pm_data exynos5420_pm_data = { .wkup_irq = exynos5250_wkup_irq, .wake_disable_mask = (0x7F << 7) | (0x1F << 1), .release_ret_regs = exynos5420_release_ret_regs, @@ -583,7 +583,7 @@ static struct exynos_pm_data exynos5420_pm_data = { .cpu_suspend = exynos5420_cpu_suspend, }; -static struct of_device_id exynos_pmu_of_device_ids[] = { +static const struct of_device_id exynos_pmu_of_device_ids[] = { { .compatible = "samsung,exynos3250-pmu", .data = &exynos3250_pm_data,