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

phy: samsung-usb2: Remove NULL terminating entry from phys array

Current code uses num_phys settings to tell the number of entries in phys.
Thus remove the NULL terminating entry from phys array which is not necessary.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Axel Lin and committed by
Kishon Vijay Abraham I
bd4abc2f 1cbdfc48

-3
-1
drivers/phy/phy-exynos4210-usb2.c
··· 250 250 .power_on = exynos4210_power_on, 251 251 .power_off = exynos4210_power_off, 252 252 }, 253 - {}, 254 253 }; 255 254 256 255 const struct samsung_usb2_phy_config exynos4210_usb2_phy_config = {
-1
drivers/phy/phy-exynos4x12-usb2.c
··· 361 361 .power_on = exynos4x12_power_on, 362 362 .power_off = exynos4x12_power_off, 363 363 }, 364 - {}, 365 364 }; 366 365 367 366 const struct samsung_usb2_phy_config exynos3250_usb2_phy_config = {
-1
drivers/phy/phy-exynos5250-usb2.c
··· 391 391 .power_on = exynos5250_power_on, 392 392 .power_off = exynos5250_power_off, 393 393 }, 394 - {}, 395 394 }; 396 395 397 396 const struct samsung_usb2_phy_config exynos5250_usb2_phy_config = {