OSDN Git Service

r8152: redefine REALTEK_USB_DEVICE macro
authorHayes Wang <hayeswang@realtek.com>
Fri, 23 Apr 2021 09:44:55 +0000 (17:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Apr 2021 20:55:42 +0000 (13:55 -0700)
commit55319eeb5bbcd3c73366de92ff224bd62325a68d
treeaa5cbb098c054295b2958fddce35e57ddfaa36bb
parente7865ea51b0ba2b5eb793ea3ca701571b477674a
r8152: redefine REALTEK_USB_DEVICE macro

Redefine REALTEK_USB_DEVICE macro with USB_DEVICE_INTERFACE_CLASS and
USB_DEVICE_AND_INTERFACE_INFO to simply the code.

Although checkpatch.pl shows the following error, it is more readable.

ERROR: Macros with complex values should be enclosed in parentheses

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c