Skip to content

Commit

Permalink
Build fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
klogg committed Sep 11, 2024
1 parent 2860f32 commit 316878f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fl2000.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void fl2000_streaming_destroy(struct usb_interface *interface);
/* ... and interface */
int fl2000_streaming_mode_set(struct usb_device *usb_dev, int pixels, u32 bytes_pix);
void fl2000_streaming_compress(struct usb_device *usb_dev, void *src, unsigned int height,
unsigned int width, unsigned int pitch);
unsigned int width, unsigned int pitch);
int fl2000_streaming_enable(struct usb_device *usb_dev);
void fl2000_streaming_disable(struct usb_device *usb_dev);

Expand Down
1 change: 0 additions & 1 deletion fl2000_drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,6 @@ void fl2000_drm_vblank(struct usb_device *usb_dev)

static int fl2000_drm_modeset_init(struct drm_device *drm)
{

return 0;
}

Expand Down
5 changes: 4 additions & 1 deletion fl2000_streaming.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,15 @@ static void fl2000_data_completion(struct urb *urb);
/* TODO: use anchors more wisely */
static int fl2000_send_stream(struct usb_device *usb_dev, struct fl2000_stream *stream)
{
if (stream->enabled) do {
do {
int ret;
struct fl2000_stream_buf *cur_sb;
struct fl2000_stream_buf *last_sb;
struct urb *urb;

if (!stream->enabled)
break;

urb = usb_alloc_urb(0, GFP_KERNEL);
if (!urb) {
dev_err(&usb_dev->dev, "Data URB allocation error");
Expand Down

0 comments on commit 316878f

Please sign in to comment.