phy: stm32: fix usbphyc static checker and checkpatch warnings
authorAmelie Delaunay <amelie.delaunay@st.com>
Mon, 7 May 2018 14:28:08 +0000 (16:28 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Sun, 20 May 2018 16:21:25 +0000 (21:51 +0530)
commit52113be1c6e92f7b99ed15ed908a10ac333ce6a9
tree68906ec85edfb1f6201aa2bf13f641b93e7e5b45
parentf7f50b2a7b054692fb1e02ff29d68e8d067aa642
phy: stm32: fix usbphyc static checker and checkpatch warnings

This patch fixes the following issues:
* warning reported by checkpatch:
WARNING: line over 80 characters
#87: FILE: drivers/phy/st/phy-stm32-usbphyc.c:87:
+static void stm32_usbphyc_get_pll_params(u32 clk_rate, struct pll_params *pll_params)

* bug reported by static checker (Dan Carpenter):
drivers/phy/st/phy-stm32-usbphyc.c:371 stm32_usbphyc_probe()
error: uninitialized symbol 'i'.

* unused stm32_usbphyc structure member: bool pll_enabled.

* unnecessary extra line in stm32_usbphyc_of_xlate

Fixes: 94c358da3a05 "phy: stm32: add support for STM32 USB PHY Controller (USBPHYC)"
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/st/phy-stm32-usbphyc.c