Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1688122ybz; Sun, 26 Apr 2020 02:05:53 -0700 (PDT) X-Google-Smtp-Source: APiQypI3Z1kibAKUe92I3XDN37myyW1gxzD37K1woke42LAkZ8fu/dMHP348T2lfqIvAgyaVNXFW X-Received: by 2002:a17:906:3952:: with SMTP id g18mr15153010eje.191.1587891953285; Sun, 26 Apr 2020 02:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587891953; cv=none; d=google.com; s=arc-20160816; b=FRBnVD3ZOEVLRZJTqixQfqOcQX7crRX7O4jAox9VgwaMHHT3E+khZ2hsCblb2UAGDG Udzxf+UafWXMxSFpdjXnjurvIAc7bl6DKNltmYZGCtaCVEYPSYX1HxOi9LlQIJjNXCCR Paa7wT4RrdTlN7b9csXC6ZUGbAocRhhWAF0jNuXIpWNJjz7z7a+4iIOJyO6UoHctDgIj lOKgxCWzgCXEXEDkInnSMhGBwFTArHA1DcGgWyfFDK7CuF26X1xwLobLpq5L6z+9Ct5l igQjoKD76uePd03HJnYxno5Q7jCFXxse/rf6O77lPKJkOL+l4ZzznQg6U3aP5vpeJpjI Breg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=N1LyhqXh5zO5WNQMPvwP5KrLvPukXKy9Ead/73gVdgc=; b=ezPY126ranc4yu4AzrafrmQWdXs9T951nZR02OszlR+oBMeQgR4goaNqj9HOBFzU9L ti3r28KE0BHNDIMaiI9HaYtQOtxaN0ueWmLfvM3gIbTUyVkT7SRvED+RtZHa9ScW/vSv 1vq91TYKrp+aVl1BELL+DMBE4s5/GbXLhaeVpZpEUe7MXvwNwYZxjUB+Dikm3Rrk1vuD dDZW+26C13xMnViNdKbQLC2YSAs8xD9hxNLOqS9yixVy3MXcXSoH0YDhF7wxKLz25XuN xnRkuTEC8547IWkRNTQdtA2fSXx979qCdXLNhAayTbbBNlLjCMZaJRA6IAgeVgtfPi1e bXSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca19si6976088edb.334.2020.04.26.02.05.29; Sun, 26 Apr 2020 02:05:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726141AbgDZJBw (ORCPT + 99 others); Sun, 26 Apr 2020 05:01:52 -0400 Received: from mail-m17613.qiye.163.com ([59.111.176.13]:6672 "EHLO mail-m17613.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726132AbgDZJBw (ORCPT ); Sun, 26 Apr 2020 05:01:52 -0400 Received: from ubuntu.localdomain (unknown [157.0.31.122]) by mail-m17613.qiye.163.com (Hmail) with ESMTPA id 89EBD48263D; Sun, 26 Apr 2020 17:01:48 +0800 (CST) From: Bernard Zhao To: Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , David Airlie , Daniel Vetter , Kukjin Kim , Krzysztof Kozlowski , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Bernard Zhao Subject: [PATCH] drm/exynos: make pointer to const data const type Date: Sun, 26 Apr 2020 02:01:42 -0700 Message-Id: <20200426090142.21251-1-bernard@vivo.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZT1VLTEhCQkJDQ0pMT09IQ1lXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6ODI6Aww4ITg#LEkeKRwqLgwO NREaFBFVSlVKTkNMQ0JKTEtDQ01DVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlKTkxV S1VISlVKSUlZV1kIAVlBSUNDSTcG X-HM-Tid: 0a71b5b8a36f93bakuws89ebd48263d Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Maybe keep pointer which points to global const string data in const type is better, make sure not change const data. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 2 +- drivers/gpu/drm/exynos/exynos_drm_mic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index e080aa92338c..f60d99c85ac9 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -211,7 +211,7 @@ #define OLD_SCLK_MIPI_CLK_NAME "pll_clk" -static char *clk_names[5] = { "bus_clk", "sclk_mipi", +static const char *const clk_names[5] = { "bus_clk", "sclk_mipi", "phyclk_mipidphy0_bitclkdiv8", "phyclk_mipidphy0_rxclkesc0", "sclk_rgb_vclk_to_dsim0" }; diff --git a/drivers/gpu/drm/exynos/exynos_drm_mic.c b/drivers/gpu/drm/exynos/exynos_drm_mic.c index f41d75923557..a86abc173605 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_mic.c +++ b/drivers/gpu/drm/exynos/exynos_drm_mic.c @@ -88,7 +88,7 @@ #define MIC_BS_SIZE_2D(x) ((x) & 0x3fff) -static char *clk_names[] = { "pclk_mic0", "sclk_rgb_vclk_to_mic0" }; +static const char *const clk_names[] = { "pclk_mic0", "sclk_rgb_vclk_to_mic0" }; #define NUM_CLKS ARRAY_SIZE(clk_names) static DEFINE_MUTEX(mic_mutex); -- 2.26.2