Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1383410
| From | Laxman Dewangan <ldewangan@nvidia.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH V3 2/4] gpio: tegra: Make of_device_id compatible data to constant |
| Date | 2016-04-20 15:50 +0200 |
| Message-ID | <rq0G0-fr-33@gated-at.bofh.it> (permalink) |
| References | <rq0FX-fr-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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>
---
Changes from V2:
-This is new in series based on discussion on previous patches.
---
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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH V3 0/4] gpio: tegra: Cleanups and support fro debounce Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-20 15:50 +0200
[PATCH V3 1/4] gpio: tegra: Don't open code of_device_get_match_data() Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-20 15:50 +0200
[PATCH V3 3/4] gpio: tegra: Get rid of all file scoped global variables Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-20 15:50 +0200
Re: [PATCH V3 3/4] gpio: tegra: Get rid of all file scoped global variables Stephen Warren <swarren@wwwdotorg.org> - 2016-04-21 20:40 +0200
Re: [PATCH V3 3/4] gpio: tegra: Get rid of all file scoped global variables Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-21 20:50 +0200
Re: [PATCH V3 3/4] gpio: tegra: Get rid of all file scoped global variables Stephen Warren <swarren@wwwdotorg.org> - 2016-04-21 21:40 +0200
[PATCH V3 2/4] gpio: tegra: Make of_device_id compatible data to constant Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-20 15:50 +0200
Re: [PATCH V3 2/4] gpio: tegra: Make of_device_id compatible data to constant Stephen Warren <swarren@wwwdotorg.org> - 2016-04-21 20:40 +0200
csiph-web