mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 16:25:34 +00:00
net: cosa: use BIT macro
This patch uses the BIT macro for setting individual bits, to fix the following checkpatch.pl issue: CHECK: Prefer using the BIT macro. Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
acc3edf005
commit
3fac4b941c
1 changed files with 3 additions and 3 deletions
|
@ -122,9 +122,9 @@ struct channel_data {
|
|||
};
|
||||
|
||||
/* cosa->firmware_status bits */
|
||||
#define COSA_FW_RESET (1<<0) /* Is the ROM monitor active? */
|
||||
#define COSA_FW_DOWNLOAD (1<<1) /* Is the microcode downloaded? */
|
||||
#define COSA_FW_START (1<<2) /* Is the microcode running? */
|
||||
#define COSA_FW_RESET BIT(0) /* Is the ROM monitor active? */
|
||||
#define COSA_FW_DOWNLOAD BIT(1) /* Is the microcode downloaded? */
|
||||
#define COSA_FW_START BIT(2) /* Is the microcode running? */
|
||||
|
||||
struct cosa_data {
|
||||
int num; /* Card number */
|
||||
|
|
Loading…
Add table
Reference in a new issue