From patchwork Mon Apr 25 10:38:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laxman Dewangan X-Patchwork-Id: 614368 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3qtjgh4Y5qz9t61 for ; Mon, 25 Apr 2016 20:50:56 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932166AbcDYKuk (ORCPT ); Mon, 25 Apr 2016 06:50:40 -0400 Received: from nat-hk.nvidia.com ([203.18.50.4]:45601 "EHLO hkmmgate102.nvidia.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932152AbcDYKuj (ORCPT ); Mon, 25 Apr 2016 06:50:39 -0400 Received: from hkpgpgate101.nvidia.com (Not Verified[10.18.92.9]) by hkmmgate102.nvidia.com id ; Mon, 25 Apr 2016 18:50:37 +0800 Received: from HKMAIL102.nvidia.com ([10.18.67.137]) by hkpgpgate101.nvidia.com (PGP Universal service); Mon, 25 Apr 2016 03:50:36 -0700 X-PGP-Universal: processed; by hkpgpgate101.nvidia.com on Mon, 25 Apr 2016 03:50:36 -0700 Received: from DRBGMAIL102.nvidia.com (10.18.16.21) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Mon, 25 Apr 2016 10:50:35 +0000 Received: from HQMAIL103.nvidia.com (172.20.187.11) by DRBGMAIL102.nvidia.com (10.18.16.21) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Mon, 25 Apr 2016 10:50:33 +0000 Received: from ldewanganubuntu-System-Product-Name.nvidia.com (172.20.13.39) by HQMAIL103.nvidia.com (172.20.187.11) with Microsoft SMTP Server id 15.0.1130.7 via Frontend Transport; Mon, 25 Apr 2016 10:50:31 +0000 From: Laxman Dewangan To: , , , , , , CC: Laxman Dewangan Subject: [PATCH V5 2/4] gpio: tegra: Make of_device_id compatible data to constant Date: Mon, 25 Apr 2016 16:08:32 +0530 Message-ID: <1461580714-22479-3-git-send-email-ldewangan@nvidia.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1461580714-22479-1-git-send-email-ldewangan@nvidia.com> References: <1461580714-22479-1-git-send-email-ldewangan@nvidia.com> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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, };