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

usb: dwc2: fix STM32F7 USB OTG HS compatible

This patch fixes compatible for STM32F7 USB OTG HS and consistently rename
dw2_set_params function.
The v2 former patch [1] had been acked by Paul Young, but v1 was merged.

[1] https://patchwork.kernel.org/patch/9925573/

Fixes: d8fae8b93682 ("usb: dwc2: add support for STM32F7xx USB OTG HS")
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>

authored by

Amelie Delaunay and committed by
Felipe Balbi
1a149e35 4c437920

+3 -3
+3 -3
drivers/usb/dwc2/params.c
··· 137 137 p->activate_stm_fs_transceiver = true; 138 138 } 139 139 140 - static void dwc2_set_stm32f7xx_hsotg_params(struct dwc2_hsotg *hsotg) 140 + static void dwc2_set_stm32f7_hsotg_params(struct dwc2_hsotg *hsotg) 141 141 { 142 142 struct dwc2_core_params *p = &hsotg->params; 143 143 ··· 164 164 { .compatible = "st,stm32f4x9-fsotg", 165 165 .data = dwc2_set_stm32f4x9_fsotg_params }, 166 166 { .compatible = "st,stm32f4x9-hsotg" }, 167 - { .compatible = "st,stm32f7xx-hsotg", 168 - .data = dwc2_set_stm32f7xx_hsotg_params }, 167 + { .compatible = "st,stm32f7-hsotg", 168 + .data = dwc2_set_stm32f7_hsotg_params }, 169 169 {}, 170 170 }; 171 171 MODULE_DEVICE_TABLE(of, dwc2_of_match_table);