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

phy: ingenic: Remove useless field .version

Remove the useless field .version from the private structure, which is
set but never read.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Link: https://lore.kernel.org/r/20201223124505.40792-1-paul@crapouillou.net
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Paul Cercueil and committed by
Vinod Koul
a9dfa098 266df28f

-23
-23
drivers/phy/ingenic/phy-ingenic-usb.c
··· 82 82 #define USBPCR1_PORT_RST BIT(21) 83 83 #define USBPCR1_WORD_IF_16BIT BIT(19) 84 84 85 - enum ingenic_usb_phy_version { 86 - ID_JZ4770, 87 - ID_JZ4775, 88 - ID_JZ4780, 89 - ID_X1000, 90 - ID_X1830, 91 - ID_X2000, 92 - }; 93 - 94 85 struct ingenic_soc_info { 95 - enum ingenic_usb_phy_version version; 96 - 97 86 void (*usb_phy_init)(struct phy *phy); 98 87 }; 99 88 ··· 289 300 } 290 301 291 302 static const struct ingenic_soc_info jz4770_soc_info = { 292 - .version = ID_JZ4770, 293 - 294 303 .usb_phy_init = jz4770_usb_phy_init, 295 304 }; 296 305 297 306 static const struct ingenic_soc_info jz4775_soc_info = { 298 - .version = ID_JZ4775, 299 - 300 307 .usb_phy_init = jz4775_usb_phy_init, 301 308 }; 302 309 303 310 static const struct ingenic_soc_info jz4780_soc_info = { 304 - .version = ID_JZ4780, 305 - 306 311 .usb_phy_init = jz4780_usb_phy_init, 307 312 }; 308 313 309 314 static const struct ingenic_soc_info x1000_soc_info = { 310 - .version = ID_X1000, 311 - 312 315 .usb_phy_init = x1000_usb_phy_init, 313 316 }; 314 317 315 318 static const struct ingenic_soc_info x1830_soc_info = { 316 - .version = ID_X1830, 317 - 318 319 .usb_phy_init = x1830_usb_phy_init, 319 320 }; 320 321 321 322 static const struct ingenic_soc_info x2000_soc_info = { 322 - .version = ID_X2000, 323 - 324 323 .usb_phy_init = x2000_usb_phy_init, 325 324 }; 326 325