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>
This commit is contained in:
parent
226b2242d4
commit
7808c42b40
@ -651,9 +651,8 @@ static const struct zynq_platform_data zynq_gpio_def = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const struct of_device_id zynq_gpio_of_match[] = {
|
static const struct of_device_id zynq_gpio_of_match[] = {
|
||||||
{ .compatible = "xlnx,zynq-gpio-1.0", .data = (void *)&zynq_gpio_def },
|
{ .compatible = "xlnx,zynq-gpio-1.0", .data = &zynq_gpio_def },
|
||||||
{ .compatible = "xlnx,zynqmp-gpio-1.0",
|
{ .compatible = "xlnx,zynqmp-gpio-1.0", .data = &zynqmp_gpio_def },
|
||||||
.data = (void *)&zynqmp_gpio_def },
|
|
||||||
{ /* end of table */ }
|
{ /* end of table */ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, zynq_gpio_of_match);
|
MODULE_DEVICE_TABLE(of, zynq_gpio_of_match);
|
||||||
|
Loading…
Reference in New Issue
Block a user