History

Merge 'staging-next' to Linus's tree

This merges the staging-next tree to Linus's tree and resolves some conflicts that were present due to changes in other trees that were affected by files here.

Greg Kroah-Hartman committed 16 years ago

Commit e4c5bf82 parents 8128057 a4ac0d81365 files · +421138 −148570Browse files

Showing the changes to drivers/staging/lirc/lirc_imon.c (1 of 1365 files). Show all

Unified · Split

drivers/staging/lirc/lirc_imon.c+7−9
@@ -278,7 +278,7 @@ static int display_close(struct inode *inode, struct file *file) · 277 unmodified lines
278278 struct imon_context *context = NULL;
279279 int retval = 0;
280280
281− context = (struct imon_context *)file->private_data;
281+ context = file->private_data;
282282
283283 if (!context) {
284284 err("%s: no context for device", __func__);
@@ -321,7 +321,6 @@ static int send_packet(struct imon_context *context) · 36 unmodified lines
321321 unsigned int pipe;
322322 int interval = 0;
323323 int retval = 0;
324− struct usb_ctrlrequest *control_req = NULL;
325324
326325 /* Check if we need to use control or interrupt urb */
327326 pipe = usb_sndintpipe(context->usbdev,
@@ -356,8 +355,6 @@ static int send_packet(struct imon_context *context) · 28 unmodified lines
356355 err("%s: packet tx failed (%d)", __func__, retval);
357356 }
358357
359− kfree(control_req);
360−
361358 return retval;
362359 }
363360
@@ -384,7 +381,7 @@ static ssize_t vfd_write(struct file *file, const char *buf, · 20 unmodified lines
384381 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
385382 int *data_buf;
386383
387− context = (struct imon_context *)file->private_data;
384+ context = file->private_data;
388385 if (!context) {
389386 err("%s: no context for device", __func__);
390387 return -ENODEV;
@@ -600,7 +597,7 @@ static void imon_incoming_packet(struct imon_context *context, · 209 unmodified lines
600597 struct device *dev = context->driver->dev;
601598 int octet, bit;
602599 unsigned char mask;
603− int i, chunk_num;
600+ int i;
604601
605602 /*
606603 * just bail out if no listening IR client
@@ -659,7 +656,7 @@ static void imon_incoming_packet(struct imon_context *context, · 52 unmodified lines
659656 }
660657 }
661658
662− if (chunk_num == 10) {
659+ if (buf[7] == 10) {
663660 if (context->rx.count) {
664661 submit_data(context);
665662 context->rx.count = 0;
@@ -877,7 +874,7 @@ static int imon_probe(struct usb_interface *interface, · 211 unmodified lines
877874 if (lirc_minor < 0) {
878875 err("%s: lirc_register_driver failed", __func__);
879876 alloc_status = 7;
880− goto alloc_status_switch;
877+ goto unlock;
881878 } else
882879 dev_info(dev, "Registered iMON driver "
883880 "(lirc minor: %d)\n", lirc_minor);
@@ -933,8 +930,9 @@ static int imon_probe(struct usb_interface *interface, · 49 unmodified lines
933930 "usb<%d:%d> initialized\n", vendor, product, ifnum,
934931 usbdev->bus->busnum, usbdev->devnum);
935932
936−alloc_status_switch:
933+unlock:
937934 mutex_unlock(&context->ctx_lock);
935+alloc_status_switch:
938936
939937 switch (alloc_status) {
940938 case 7: