]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
spi: davinci: remove unused members of davinci_spi_slave
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Thu, 19 Aug 2010 10:11:41 +0000 (15:41 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:27 +0000 (18:38 +0530)
Several members of struct davinci_spi_slave are unused in code.
Remove such members.

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/spi/davinci_spi.c

index e94c63813e9fcf4200ed47b1c1f069d12f06d82e..31b9c2278dec1843219af72abde5f87372d1985b 100644 (file)
 #define SPIFMT0                0x50
 
 struct davinci_spi_slave {
-       u32     cmd_to_write;
-       u32     clk_ctrl_to_write;
        u32     bytes_per_word;
-       u8      active_cs;
 };
 
 /* We have 2 DMA channels per CS, one for RX and one for TX */
@@ -495,8 +492,6 @@ static int davinci_spi_setup(struct spi_device *spi)
        if (!spi->bits_per_word)
                spi->bits_per_word = 8;
 
-       davinci_spi->slave[spi->chip_select].cmd_to_write = 0;
-
        if (use_dma && davinci_spi->dma_channels) {
                davinci_spi_dma = &davinci_spi->dma_channels[spi->chip_select];