return NULL;
}
-static int gs_cmd_reset(struct gs_can *gsdev)
+static int gs_cmd_reset(struct gs_can *dev)
{
struct gs_device_mode *dm;
- struct usb_interface *intf = gsdev->iface;
+ struct usb_interface *intf = dev->iface;
int rc;
dm = kzalloc(sizeof(*dm), GFP_KERNEL);
usb_sndctrlpipe(interface_to_usbdev(intf), 0),
GS_USB_BREQ_MODE,
USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
- gsdev->channel, 0, dm, sizeof(*dm), 1000);
+ dev->channel, 0, dm, sizeof(*dm), 1000);
kfree(dm);