projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
271b17b
)
gpio: palmas: Make of_device_id array const
author
Jingoo Han
<
[email protected]
>
Wed, 7 May 2014 09:06:50 +0000
(18:06 +0900)
committer
Linus Walleij
<
[email protected]
>
Fri, 9 May 2014 09:01:24 +0000
(11:01 +0200)
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
drivers/gpio/gpio-palmas.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-palmas.c
b/drivers/gpio/gpio-palmas.c
index a5ec6022e7891800300e75aa44176834c42a97b6..86bdbe362068db02b61b2a2bbbdfd3f1cdf0aa2b 100644
(file)
--- a/
drivers/gpio/gpio-palmas.c
+++ b/
drivers/gpio/gpio-palmas.c
@@
-148,7
+148,7
@@
static const struct palmas_device_data tps80036_dev_data = {
.ngpio = 16,
};
-static struct of_device_id of_palmas_gpio_match[] = {
+static
const
struct of_device_id of_palmas_gpio_match[] = {
{ .compatible = "ti,palmas-gpio", .data = &palmas_dev_data,},
{ .compatible = "ti,tps65913-gpio", .data = &palmas_dev_data,},
{ .compatible = "ti,tps65914-gpio", .data = &palmas_dev_data,},