Skip to content

Commit

Permalink
Fixes for fl2000_drv
Browse files Browse the repository at this point in the history
  • Loading branch information
klogg committed Sep 11, 2024
1 parent cb843a4 commit 9cac9aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fl2000_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

#define FL2000_USB_VENDOR 0x1D5C
#define FL2000_USB_PRODUCT 0x2000
#define FL2000_USB_INTERFACE(ifnum, table) \
#define FL2000_USB_INTERFACE(ifnum, api_addr) \
{ \
USB_DEVICE_INTERFACE_NUMBER(FL2000_USB_VENDOR, FL2000_USB_PRODUCT, ifnum), \
.driver_info = (kernel_ulong_t)(table) \
.driver_info = (kernel_ulong_t)(api_addr) \
}

struct fl2000_if_api {
Expand Down Expand Up @@ -83,9 +83,9 @@ static const struct fl2000_if_api fl2000_interrupt = {
};

static const struct usb_device_id fl2000_id_table[] = {
FL2000_USB_INTERFACE(FL2000_USBIF_AVCONTROL, fl2000_avcontrol),
FL2000_USB_INTERFACE(FL2000_USBIF_STREAMING, fl2000_streaming),
FL2000_USB_INTERFACE(FL2000_USBIF_INTERRUPT, fl2000_interrupt),
FL2000_USB_INTERFACE(FL2000_USBIF_AVCONTROL, &fl2000_avcontrol),
FL2000_USB_INTERFACE(FL2000_USBIF_STREAMING, &fl2000_streaming),
FL2000_USB_INTERFACE(FL2000_USBIF_INTERRUPT, &fl2000_interrupt),
{},
};
MODULE_DEVICE_TABLE(usb, fl2000_id_table);
Expand Down

0 comments on commit 9cac9aa

Please sign in to comment.