usb: dwc2: use well defined macros for power_down
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Tue, 16 Jun 2020 08:26:17 +0000 (16:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Jun 2020 08:13:16 +0000 (10:13 +0200)
commit07d9878fa18f5283182f4c13e708e22c11016efe
tree51471b207f4713764045320b8183119f3a81fe35
parent9f3aedbe98fe5afaf68b74cc1b242eca77fe3119
usb: dwc2: use well defined macros for power_down

Use the well defined macros such as DWC2_POWER_DOWN_PARAM_NONE,
DWC2_POWER_DOWN_PARAM_PARTIAL and DWC2_POWER_DOWN_PARAM_HIBERNATION
to make code more readable.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Link: https://lore.kernel.org/r/20200616162617.38365cc8@xhacker.debian
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/hcd.c
drivers/usb/dwc2/params.c