summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-dw.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2015-10-14 23:12:22 +0300
committerMark Brown <broonie@kernel.org>2015-10-19 20:32:01 +0100
commitd53c0ef319eb5ceb5a089ff3050a2e6808c9adb9 (patch)
tree366c1a20a7c526b747a747f6c1501d243291a165 /drivers/spi/spi-dw.c
parentde6feda884b0079f5f232a41d94da23d198ff230 (diff)
downloadlinux-d53c0ef319eb5ceb5a089ff3050a2e6808c9adb9.tar.bz2
spi: dw: eliminate unused threshold variables
The tx_threshold and rx_threshold variables are not used anywhere. Remove them. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw.c')
-rw-r--r--drivers/spi/spi-dw.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c
index a6fd7cfa1b40..c8e7715097e7 100644
--- a/drivers/spi/spi-dw.c
+++ b/drivers/spi/spi-dw.c
@@ -36,8 +36,6 @@ struct chip_data {
u8 poll_mode; /* 1 means use poll mode */
- u32 rx_threshold;
- u32 tx_threshold;
u8 enable_dma;
u16 clk_div; /* baud rate divider */
u32 speed_hz; /* baud rate */
@@ -425,9 +423,6 @@ static int dw_spi_setup(struct spi_device *spi)
chip->poll_mode = chip_info->poll_mode;
chip->type = chip_info->type;
-
- chip->rx_threshold = 0;
- chip->tx_threshold = 0;
}
chip->tmode = 0; /* Tx & Rx */