Date:2011-07-06 16:33:08 (9 years 7 days ago)
Author:Werner Almesberger
Commit:2723787ddc5789c3268deafbfcd3db80a63a182c
Message:atusb: remove more unused items (usb_irq, urb_completion)

We don't have a proper interrupt for USB but use a completion callback.
Also, since we're now proudly asynchronous, there's no need for
urb_completion.

Signed-off-by: Werner Almesberger <werner@almesberger.net>
Files: drivers/spi/atusb.c (2 diffs)

Change Details

drivers/spi/atusb.c
4444    uint8_t atusb_hw_type;
4545    struct spi_master *master;
4646    int slave_irq;
47    int usb_irq;
4847    struct at86rf230_platform_data platform_data;
4948    /* copy platform_data so that we can adapt .reset_data */
5049    struct spi_device *spi;
51    size_t bulk_in_filled; /* number of bytes in the buffer */
52    struct completion urb_completion;
5350// unsigned char buffer[3];
5451    unsigned char buffer[260]; /* XXL, just in case */
5552    struct spi_message *msg;
...... 
469466
470467    atusb = spi_master_get_devdata(master);
471468
472    init_completion(&atusb->urb_completion);
473
474469    atusb->udev = usb_get_dev(udev);
475470    usb_set_intfdata(interface, atusb);
476471

Archive Download the corresponding diff file



interactive