~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/staging/lirc/lirc_imon.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
672
672
static void usb_rx_callback(struct urb *urb)
673
673
{
674
674
        struct imon_context *context;
675
 
        unsigned char *buf;
676
 
        int len;
677
675
        int intfnum = 0;
678
676
 
679
677
        if (!urb)
683
681
        if (!context)
684
682
                return;
685
683
 
686
 
        buf = urb->transfer_buffer;
687
 
        len = urb->actual_length;
688
 
 
689
684
        switch (urb->status) {
690
685
        case -ENOENT:           /* usbcore unlink successful! */
691
686
                return;
728
723
        int ir_ep_found = 0;
729
724
        int alloc_status = 0;
730
725
        int vfd_proto_6p = 0;
731
 
        int code_length;
732
726
        struct imon_context *context = NULL;
733
727
        int i;
734
728
        u16 vendor, product;
749
743
        else
750
744
                context->display = 1;
751
745
 
752
 
        code_length = BUF_CHUNK_SIZE * 8;
753
 
 
754
746
        usbdev     = usb_get_dev(interface_to_usbdev(interface));
755
747
        iface_desc = interface->cur_altsetting;
756
748
        num_endpts = iface_desc->desc.bNumEndpoints;
856
848
 
857
849
        strcpy(driver->name, MOD_NAME);
858
850
        driver->minor = -1;
859
 
        driver->code_length = sizeof(int) * 8;
 
851
        driver->code_length = BUF_CHUNK_SIZE * 8;
860
852
        driver->sample_rate = 0;
861
853
        driver->features = LIRC_CAN_REC_MODE2;
862
854
        driver->data = context;