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:
226b224
)
gpio: zynq: remove unneeded (void *) casts in of_match_table
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Fri, 12 May 2017 16:18:45 +0000
(
01:18
+0900)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 22 May 2017 15:13:04 +0000
(17:13 +0200)
of_device_id::data is an opaque pointer. No explicit cast is needed.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-zynq.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-zynq.c
b/drivers/gpio/gpio-zynq.c
index 6b4d10d6e10f6c81bf820e54e7804a0c33e2488b..ed87c9a6e0e69b231ec709af155faa1ba32c4069 100644
(file)
--- a/
drivers/gpio/gpio-zynq.c
+++ b/
drivers/gpio/gpio-zynq.c
@@
-651,9
+651,8
@@
static const struct zynq_platform_data zynq_gpio_def = {
};
static const struct of_device_id zynq_gpio_of_match[] = {
- { .compatible = "xlnx,zynq-gpio-1.0", .data = (void *)&zynq_gpio_def },
- { .compatible = "xlnx,zynqmp-gpio-1.0",
- .data = (void *)&zynqmp_gpio_def },
+ { .compatible = "xlnx,zynq-gpio-1.0", .data = &zynq_gpio_def },
+ { .compatible = "xlnx,zynqmp-gpio-1.0", .data = &zynqmp_gpio_def },
{ /* end of table */ }
};
MODULE_DEVICE_TABLE(of, zynq_gpio_of_match);