Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753082AbcDVKVS (ORCPT ); Fri, 22 Apr 2016 06:21:18 -0400 Received: from nat-hk.nvidia.com ([203.18.50.4]:52922 "EHLO hkmmgate101.nvidia.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752745AbcDVKVQ (ORCPT ); Fri, 22 Apr 2016 06:21:16 -0400 X-PGP-Universal: processed; by hkpgpgate101.nvidia.com on Fri, 22 Apr 2016 03:21:12 -0700 From: Laxman Dewangan To: , , , , , , CC: Laxman Dewangan Subject: [PATCH V4 2/4] gpio: tegra: Make of_device_id compatible data to constant Date: Fri, 22 Apr 2016 15:39:12 +0530 Message-ID: <1461319754-12040-2-git-send-email-ldewangan@nvidia.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1461319754-12040-1-git-send-email-ldewangan@nvidia.com> References: <1461319754-12040-1-git-send-email-ldewangan@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1139 Lines: 39 The data member of the of_device_id is the constant type and hence all static structure which is used for this initialisation as static. Signed-off-by: Laxman Dewangan Suggested-by: Thierry Reding Reviewed-by: Stephen Warren --- Changes from V2: -This is new in series based on discussion on previous patches. Changes from V3: - Collected RB of Stephen. drivers/gpio/gpio-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 1b0c497..cd69422 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -560,12 +560,12 @@ static int tegra_gpio_probe(struct platform_device *pdev) return 0; } -static struct tegra_gpio_soc_config tegra20_gpio_config = { +static const struct tegra_gpio_soc_config tegra20_gpio_config = { .bank_stride = 0x80, .upper_offset = 0x800, }; -static struct tegra_gpio_soc_config tegra30_gpio_config = { +static const struct tegra_gpio_soc_config tegra30_gpio_config = { .bank_stride = 0x100, .upper_offset = 0x80, }; -- 2.1.4