Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions kinect2.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static const u32 start_cmd = 0x01;
static const u32 stop_cmd = 0x00;

/* request packet for kinect2 sensor */
struct request {
struct requestPacket {
u32 magic;
u32 cmdseq;
u32 reply_len;
Expand All @@ -65,10 +65,10 @@ struct request {
struct sd {
struct gspca_dev gspca_dev; /* !! must be the first item */

u32 cmdseq; /* a sequence number for control commands */
struct request request; /* a buffer for sending control commands */
u32 response[32]; /* a buffer for receiving response */
u8 synced; /* a flag for sd_depth_pkt_scan() */
u32 cmdseq; /* a sequence number for control commands */
struct requestPacket request; /* a buffer for sending control commands */
u32 response[32]; /* a buffer for receiving response */
u8 synced; /* a flag for sd_depth_pkt_scan() */

struct v4l2_ioctl_ops ioctl_ops;
};
Expand Down Expand Up @@ -115,7 +115,7 @@ static int send_cmd(struct gspca_dev *gspca_dev, u32 cmd,
{
struct sd *sd = (struct sd *) gspca_dev;
struct usb_device *udev = gspca_dev->dev;
struct request *req = &sd->request;
struct requestPacket *req = &sd->request;
int actual_len, result = 0;
int res, i;

Expand Down