usb: musb: jz4740: Constify jz4740_musb_pdata struct
authorPaul Cercueil <paul@crapouillou.net>
Wed, 15 Jan 2020 13:25:35 +0000 (07:25 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2020 13:46:57 +0000 (14:46 +0100)
commit31cecb6bb6982e2976d3f95bd0d44855ec52cc29
tree289aed6c11764afcfd5ce12a9b1e74518dd34baa
parent4b70331b6fa13e4ae6ba634c336a616a7e2bf9d0
usb: musb: jz4740: Constify jz4740_musb_pdata struct

By moving around the jz4740_musb_pdata structure, we can have the
.platform_ops field initialized, so that we don't have to initialize it
manually in the probe function. Therefore, the struct can be const now.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Bin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20200115132547.364-14-b-liu@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/jz4740.c