Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: dwc3-meson-g12a: constify drvdata structs

Constify the drvdata structs. This also matches the definition of
member drvdata in dwc3_meson_g12a.

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/a3c178c9-7c33-d7b8-9f6e-734dc28728ab@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Heiner Kallweit and committed by
Greg Kroah-Hartman
850ebb27 0d48aee6

+5 -5
+5 -5
drivers/usb/dwc3/dwc3-meson-g12a.c
··· 188 188 * reset to recover usage of the port. 189 189 */ 190 190 191 - static struct dwc3_meson_g12a_drvdata gxl_drvdata = { 191 + static const struct dwc3_meson_g12a_drvdata gxl_drvdata = { 192 192 .otg_switch_supported = true, 193 193 .otg_phy_host_port_disable = true, 194 194 .clks = meson_gxl_clocks, ··· 202 202 .usb_post_init = dwc3_meson_gxl_usb_post_init, 203 203 }; 204 204 205 - static struct dwc3_meson_g12a_drvdata gxm_drvdata = { 205 + static const struct dwc3_meson_g12a_drvdata gxm_drvdata = { 206 206 .otg_switch_supported = true, 207 207 .otg_phy_host_port_disable = true, 208 208 .clks = meson_gxl_clocks, ··· 216 216 .usb_post_init = dwc3_meson_gxl_usb_post_init, 217 217 }; 218 218 219 - static struct dwc3_meson_g12a_drvdata axg_drvdata = { 219 + static const struct dwc3_meson_g12a_drvdata axg_drvdata = { 220 220 .otg_switch_supported = true, 221 221 .clks = meson_gxl_clocks, 222 222 .num_clks = ARRAY_SIZE(meson_gxl_clocks), ··· 229 229 .usb_post_init = dwc3_meson_gxl_usb_post_init, 230 230 }; 231 231 232 - static struct dwc3_meson_g12a_drvdata g12a_drvdata = { 232 + static const struct dwc3_meson_g12a_drvdata g12a_drvdata = { 233 233 .otg_switch_supported = true, 234 234 .clks = meson_g12a_clocks, 235 235 .num_clks = ARRAY_SIZE(meson_g12a_clocks), ··· 241 241 .usb_init = dwc3_meson_g12a_usb_init, 242 242 }; 243 243 244 - static struct dwc3_meson_g12a_drvdata a1_drvdata = { 244 + static const struct dwc3_meson_g12a_drvdata a1_drvdata = { 245 245 .otg_switch_supported = false, 246 246 .clks = meson_a1_clocks, 247 247 .num_clks = ARRAY_SIZE(meson_a1_clocks),