can: gs_usb: fix coding style
This patch fixes five minor style issues, spaces are between bitwise OR operators. Signed-off-by: Ethan Zonca <e@ethanzonca.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Родитель
c919a3069c
Коммит
540a27aef3
|
@ -258,7 +258,7 @@ static int gs_cmd_reset(struct gs_usb *gsusb, struct gs_can *gsdev)
|
||||||
rc = usb_control_msg(interface_to_usbdev(intf),
|
rc = usb_control_msg(interface_to_usbdev(intf),
|
||||||
usb_sndctrlpipe(interface_to_usbdev(intf), 0),
|
usb_sndctrlpipe(interface_to_usbdev(intf), 0),
|
||||||
GS_USB_BREQ_MODE,
|
GS_USB_BREQ_MODE,
|
||||||
USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_INTERFACE,
|
USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
|
||||||
gsdev->channel,
|
gsdev->channel,
|
||||||
0,
|
0,
|
||||||
dm,
|
dm,
|
||||||
|
@ -432,7 +432,7 @@ static int gs_usb_set_bittiming(struct net_device *netdev)
|
||||||
rc = usb_control_msg(interface_to_usbdev(intf),
|
rc = usb_control_msg(interface_to_usbdev(intf),
|
||||||
usb_sndctrlpipe(interface_to_usbdev(intf), 0),
|
usb_sndctrlpipe(interface_to_usbdev(intf), 0),
|
||||||
GS_USB_BREQ_BITTIMING,
|
GS_USB_BREQ_BITTIMING,
|
||||||
USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_INTERFACE,
|
USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
|
||||||
dev->channel,
|
dev->channel,
|
||||||
0,
|
0,
|
||||||
dbt,
|
dbt,
|
||||||
|
@ -546,7 +546,6 @@ static netdev_tx_t gs_can_start_xmit(struct sk_buff *skb,
|
||||||
hf,
|
hf,
|
||||||
urb->transfer_dma);
|
urb->transfer_dma);
|
||||||
|
|
||||||
|
|
||||||
if (rc == -ENODEV) {
|
if (rc == -ENODEV) {
|
||||||
netif_device_detach(netdev);
|
netif_device_detach(netdev);
|
||||||
} else {
|
} else {
|
||||||
|
@ -804,7 +803,7 @@ static struct gs_can *gs_make_candev(unsigned int channel,
|
||||||
rc = usb_control_msg(interface_to_usbdev(intf),
|
rc = usb_control_msg(interface_to_usbdev(intf),
|
||||||
usb_rcvctrlpipe(interface_to_usbdev(intf), 0),
|
usb_rcvctrlpipe(interface_to_usbdev(intf), 0),
|
||||||
GS_USB_BREQ_BT_CONST,
|
GS_USB_BREQ_BT_CONST,
|
||||||
USB_DIR_IN|USB_TYPE_VENDOR|USB_RECIP_INTERFACE,
|
USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
|
||||||
channel,
|
channel,
|
||||||
0,
|
0,
|
||||||
bt_const,
|
bt_const,
|
||||||
|
@ -921,7 +920,7 @@ static int gs_usb_probe(struct usb_interface *intf,
|
||||||
rc = usb_control_msg(interface_to_usbdev(intf),
|
rc = usb_control_msg(interface_to_usbdev(intf),
|
||||||
usb_sndctrlpipe(interface_to_usbdev(intf), 0),
|
usb_sndctrlpipe(interface_to_usbdev(intf), 0),
|
||||||
GS_USB_BREQ_HOST_FORMAT,
|
GS_USB_BREQ_HOST_FORMAT,
|
||||||
USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_INTERFACE,
|
USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
|
||||||
1,
|
1,
|
||||||
intf->altsetting[0].desc.bInterfaceNumber,
|
intf->altsetting[0].desc.bInterfaceNumber,
|
||||||
hconf,
|
hconf,
|
||||||
|
@ -944,7 +943,7 @@ static int gs_usb_probe(struct usb_interface *intf,
|
||||||
rc = usb_control_msg(interface_to_usbdev(intf),
|
rc = usb_control_msg(interface_to_usbdev(intf),
|
||||||
usb_rcvctrlpipe(interface_to_usbdev(intf), 0),
|
usb_rcvctrlpipe(interface_to_usbdev(intf), 0),
|
||||||
GS_USB_BREQ_DEVICE_CONFIG,
|
GS_USB_BREQ_DEVICE_CONFIG,
|
||||||
USB_DIR_IN|USB_TYPE_VENDOR|USB_RECIP_INTERFACE,
|
USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
|
||||||
1,
|
1,
|
||||||
intf->altsetting[0].desc.bInterfaceNumber,
|
intf->altsetting[0].desc.bInterfaceNumber,
|
||||||
dconf,
|
dconf,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче