diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-05-13 01:18:45 +0900 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-05-22 17:13:04 +0200 |
commit | 7808c42b4043f71daa91acdf7454d94ed5b7178e (patch) | |
tree | 3b3a17e9d9b55151c11bef14a905dc6d0d96f18d /drivers | |
parent | 226b2242d43d6d2d4a72e394c19fdd2f1b06f29e (diff) | |
download | lwn-7808c42b4043f71daa91acdf7454d94ed5b7178e.tar.gz lwn-7808c42b4043f71daa91acdf7454d94ed5b7178e.zip |
gpio: zynq: remove unneeded (void *) casts in of_match_table
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpio-zynq.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index 6b4d10d6e10f..ed87c9a6e0e6 100644 --- 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); |