[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a3d1a695-3138-f322-3b4f-5d00e9c85a50@gmail.com>
Date: Thu, 6 May 2021 11:50:10 +0300
From: Sergei Shtylyov <sergei.shtylyov@...il.com>
To: Chunfeng Yun <chunfeng.yun@...iatek.com>,
Mathias Nyman <mathias.nyman@...el.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Matthias Brugger <matthias.bgg@...il.com>,
linux-usb@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org,
Ikjoon Jang <ikjn@...omium.org>,
Eddie Hung <eddie.hung@...iatek.com>
Subject: Re: [PATCH v2 1/3] usb: xhci-mtk: use bitfield instead of bool
Hello!
On 06.05.2021 9:31, Chunfeng Yun wrote:
> 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."
>
> Due to @has_ippc's default vaule is 0, no need set it again if fail
Value. :-)
> to get ippc base address
>
> Signed-off-by: Chunfeng Yun <chunfeng.yun@...iatek.com>
[...]
MBR, Sergei
Powered by blists - more mailing lists