diff options
author | Mark Brown <broonie@kernel.org> | 2014-10-29 08:27:32 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-11-05 15:57:24 -0500 |
commit | 7a95db03040e8b11de21f367e2f1a3457c7a37b4 (patch) | |
tree | 65cff022f53bd41904c313fc54b83ae443e1904e /drivers/mtd | |
parent | b94ed087744c5bc287d2ed706b476693df07151d (diff) |
mtd: dataflash: Remove use of tx_dma
We are trying to remove the legacy tx_dma and rx_dma fields from the
spi_transfer structure. Currently dataflash uses tx_dma but only to make
sure that it's set to 0 so we can remove this use by replacing with a
zero initialisation of the entire spi_transfer struct.
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/devices/mtd_dataflash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index dd22ce2cc9ad..0099aba72a8b 100644 --- a/drivers/mtd/devices/mtd_dataflash.c +++ b/drivers/mtd/devices/mtd_dataflash.c | |||
@@ -149,7 +149,7 @@ static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr) | |||
149 | { | 149 | { |
150 | struct dataflash *priv = mtd->priv; | 150 | struct dataflash *priv = mtd->priv; |
151 | struct spi_device *spi = priv->spi; | 151 | struct spi_device *spi = priv->spi; |
152 | struct spi_transfer x = { .tx_dma = 0, }; | 152 | struct spi_transfer x = { }; |
153 | struct spi_message msg; | 153 | struct spi_message msg; |
154 | unsigned blocksize = priv->page_size << 3; | 154 | unsigned blocksize = priv->page_size << 3; |
155 | uint8_t *command; | 155 | uint8_t *command; |
@@ -235,7 +235,7 @@ static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len, | |||
235 | size_t *retlen, u_char *buf) | 235 | size_t *retlen, u_char *buf) |
236 | { | 236 | { |
237 | struct dataflash *priv = mtd->priv; | 237 | struct dataflash *priv = mtd->priv; |
238 | struct spi_transfer x[2] = { { .tx_dma = 0, }, }; | 238 | struct spi_transfer x[2] = { }; |
239 | struct spi_message msg; | 239 | struct spi_message msg; |
240 | unsigned int addr; | 240 | unsigned int addr; |
241 | uint8_t *command; | 241 | uint8_t *command; |
@@ -301,7 +301,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len, | |||
301 | { | 301 | { |
302 | struct dataflash *priv = mtd->priv; | 302 | struct dataflash *priv = mtd->priv; |
303 | struct spi_device *spi = priv->spi; | 303 | struct spi_device *spi = priv->spi; |
304 | struct spi_transfer x[2] = { { .tx_dma = 0, }, }; | 304 | struct spi_transfer x[2] = { }; |
305 | struct spi_message msg; | 305 | struct spi_message msg; |
306 | unsigned int pageaddr, addr, offset, writelen; | 306 | unsigned int pageaddr, addr, offset, writelen; |
307 | size_t remaining = len; | 307 | size_t remaining = len; |