]> git.baikalelectronics.ru Git - kernel.git/commit
phy: sunxi: Rework phy initialization
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 13 May 2014 15:44:17 +0000 (17:44 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 14 May 2014 14:11:13 +0000 (19:41 +0530)
commit934abe9af3f685a00997e6fb7e9b78944a251836
tree52bd4b3560d8ef9084cfdb5f8e36da589bca0844
parent22349a8a103de09c7417619dbf1aac92fbe62289
phy: sunxi: Rework phy initialization

Move the phy initialization and variables declaration to the loop itself, since
it is where it really belongs. Also remove all the temporary variables, we can
use the structure members directly.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-sun4i-usb.c