Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1386239 > unrolled thread

[PATCH V5 2/4] gpio: tegra: Make of_device_id compatible data to constant

Started byLaxman Dewangan <ldewangan@nvidia.com>
First post2016-04-25 13:00 +0200
Last post2016-04-25 13:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH V5 2/4] gpio: tegra: Make of_device_id compatible data to constant Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-25 13:00 +0200

#1386239 — [PATCH V5 2/4] gpio: tegra: Make of_device_id compatible data to constant

FromLaxman Dewangan <ldewangan@nvidia.com>
Date2016-04-25 13:00 +0200
Subject[PATCH V5 2/4] gpio: tegra: Make of_device_id compatible data to constant
Message-ID<rrMpd-4ls-25@gated-at.bofh.it>
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 <ldewangan@nvidia.com>
Suggested-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

---
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web