]> git.baikalelectronics.ru Git - kernel.git/commit
phy: usb: Fix misuse of IS_ENABLED
authorChen Li <chenli@uniontech.com>
Tue, 27 Apr 2021 07:17:45 +0000 (15:17 +0800)
committerVinod Koul <vkoul@kernel.org>
Fri, 14 May 2021 12:10:37 +0000 (17:40 +0530)
commitfbffebca1ccd42fbe238fcf6107e97e662e2ebd6
tree7043b7f4eeb15c2da1a542b481822a6871d2f33f
parent9fb51bb203ba1c67f480638e9d0605db59810687
phy: usb: Fix misuse of IS_ENABLED

While IS_ENABLED() is perfectly fine for CONFIG_* symbols, it is not
for other symbols such as __BIG_ENDIAN that is provided directly by
the compiler.

Switch to use CONFIG_CPU_BIG_ENDIAN instead of __BIG_ENDIAN.

Signed-off-by: Chen Li <chenli@uniontech.com>
Reviewed-by: Al Cooper <alcooperx@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Fixes: 7a3fa54417b4 ("phy: usb: Restructure in preparation for adding 7216 USB support")
Link: https://lore.kernel.org/r/87czuggpra.wl-chenli@uniontech.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/broadcom/phy-brcm-usb-init.h