usb: xhci-mtk: use bitfield instead of bool
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Fri, 7 May 2021 02:11:24 +0000 (10:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 14:21:48 +0000 (16:21 +0200)
commit40ddb76ba0baaa7d62ab563be56c5fa38ec649c7
tree2939fbf2328d6c16eb7a0135b35b4231407bf137
parent3c5e0d0e9da1b6172eca9f38f67263789d938d25
usb: xhci-mtk: use bitfield instead of bool

Use bitfield instead of bool in struct

Refer to coding-style.rst 17) Using bool:
"If a structure has many true/false values, consider consolidating
them into a bitfield with 1 bit members, or using an appropriate
fixed width type, such as u8."

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20210507021127.54717-1-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk.h