Staging: gdm72xx: usb_ids: fix a macro coding style error
Fix a macro with complex value coding style error. Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
435009bba4
commit
5a447f4c73
1 changed files with 5 additions and 1 deletions
|
@ -32,7 +32,9 @@
|
|||
#define BL_PID_MASK 0xffc0
|
||||
|
||||
#define USB_DEVICE_BOOTLOADER(vid, pid) \
|
||||
{USB_DEVICE((vid), ((pid)&BL_PID_MASK)|B_DOWNLOAD)}, \
|
||||
{USB_DEVICE((vid), ((pid)&BL_PID_MASK)|B_DOWNLOAD)}
|
||||
|
||||
#define USB_DEVICE_BOOTLOADER_DRV(vid, pid) \
|
||||
{USB_DEVICE((vid), ((pid)&BL_PID_MASK)|B_DOWNLOAD|B_DIFF_DL_DRV)}
|
||||
|
||||
#define USB_DEVICE_CDC_DATA(vid, pid) \
|
||||
|
@ -40,6 +42,7 @@
|
|||
|
||||
static const struct usb_device_id id_table[] = {
|
||||
USB_DEVICE_BOOTLOADER(GCT_VID, GCT_PID1),
|
||||
USB_DEVICE_BOOTLOADER_DRV(GCT_VID, GCT_PID1),
|
||||
USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1),
|
||||
USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0x1),
|
||||
USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0x2),
|
||||
|
@ -58,6 +61,7 @@ static const struct usb_device_id id_table[] = {
|
|||
USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID1+0xf),
|
||||
|
||||
USB_DEVICE_BOOTLOADER(GCT_VID, GCT_PID2),
|
||||
USB_DEVICE_BOOTLOADER_DRV(GCT_VID, GCT_PID2),
|
||||
USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2),
|
||||
USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0x1),
|
||||
USB_DEVICE_CDC_DATA(GCT_VID, GCT_PID2+0x2),
|
||||
|
|
Loading…
Reference in a new issue