Skip to content

Commit

Permalink
can: gs_usb: gs_cmd_reset(): rename variable holding struct gs_can po…
Browse files Browse the repository at this point in the history
…inter to dev

Most of the driver uses the variable "dev" to point to the struct
gs_can. Use the same name in gs_cmd_reset(), too. Rename gsdev to dev.

Fixes: d08e973 ("can: gs_usb: Added support for the GS_USB CAN devices")
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
marckleinebudde committed Sep 23, 2022
1 parent 103108c commit 0024675
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/can/usb/gs_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,10 @@ static struct gs_tx_context *gs_get_tx_context(struct gs_can *dev,
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);
Expand All @@ -374,7 +374,7 @@ static int gs_cmd_reset(struct gs_can *gsdev)
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);

Expand Down

0 comments on commit 0024675

Please sign in to comment.