USB: PHY: JZ4770: Unify code style and simplify code.
author周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Thu, 23 Jul 2020 06:12:59 +0000 (14:12 +0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 24 Jul 2020 13:45:13 +0000 (16:45 +0300)
commit6e5478aeb3184cb37035550f82527b27c064eef9
tree2852adc7cfa964ac22afe5362134892e387d8880
parent4afd6fe4a3e331952e133a5fd01e9ad5377fdd1d
USB: PHY: JZ4770: Unify code style and simplify code.

1.Modify the macro definition to unify "#define USBPCR_XXXX n"
  into the "#define USBPCR_XXXX (n << USBPCR_XXXX_LSB)" style,
  so as to unify the code style in the "jz4770_phy_init()" and
  simplify the code.
2.Remove unused macro definitions to simplify the code.

Tested-by: 周正 (Zhou Zheng) <sernia.zhou@foxmail.com>
Suggested-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/phy/phy-jz4770.c