diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-06-29 06:15:13 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-08-02 04:05:46 -0400 |
commit | 42845d2a49e574788823ae5e91c39e64c25cd872 (patch) | |
tree | d8e910d37f855bca02b62f918419e5194c292744 /drivers/mtd/devices | |
parent | d5af6dcffabdab199ecca0141a3a00201e948275 (diff) |
mtd: dataflash: remove casts from void
Remove unnesessary casts from void*.
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r-- | drivers/mtd/devices/mtd_dataflash.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index 19817404ce7d..c5015cc721d5 100644 --- a/drivers/mtd/devices/mtd_dataflash.c +++ b/drivers/mtd/devices/mtd_dataflash.c | |||
@@ -141,7 +141,7 @@ static int dataflash_waitready(struct spi_device *spi) | |||
141 | */ | 141 | */ |
142 | static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr) | 142 | static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr) |
143 | { | 143 | { |
144 | struct dataflash *priv = (struct dataflash *)mtd->priv; | 144 | struct dataflash *priv = mtd->priv; |
145 | struct spi_device *spi = priv->spi; | 145 | struct spi_device *spi = priv->spi; |
146 | struct spi_transfer x = { .tx_dma = 0, }; | 146 | struct spi_transfer x = { .tx_dma = 0, }; |
147 | struct spi_message msg; | 147 | struct spi_message msg; |
@@ -231,7 +231,7 @@ static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr) | |||
231 | static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len, | 231 | static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len, |
232 | size_t *retlen, u_char *buf) | 232 | size_t *retlen, u_char *buf) |
233 | { | 233 | { |
234 | struct dataflash *priv = (struct dataflash *)mtd->priv; | 234 | struct dataflash *priv = mtd->priv; |
235 | struct spi_transfer x[2] = { { .tx_dma = 0, }, }; | 235 | struct spi_transfer x[2] = { { .tx_dma = 0, }, }; |
236 | struct spi_message msg; | 236 | struct spi_message msg; |
237 | unsigned int addr; | 237 | unsigned int addr; |
@@ -304,7 +304,7 @@ static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len, | |||
304 | static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len, | 304 | static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len, |
305 | size_t * retlen, const u_char * buf) | 305 | size_t * retlen, const u_char * buf) |
306 | { | 306 | { |
307 | struct dataflash *priv = (struct dataflash *)mtd->priv; | 307 | struct dataflash *priv = mtd->priv; |
308 | struct spi_device *spi = priv->spi; | 308 | struct spi_device *spi = priv->spi; |
309 | struct spi_transfer x[2] = { { .tx_dma = 0, }, }; | 309 | struct spi_transfer x[2] = { { .tx_dma = 0, }, }; |
310 | struct spi_message msg; | 310 | struct spi_message msg; |
@@ -515,7 +515,7 @@ static ssize_t otp_read(struct spi_device *spi, unsigned base, | |||
515 | static int dataflash_read_fact_otp(struct mtd_info *mtd, | 515 | static int dataflash_read_fact_otp(struct mtd_info *mtd, |
516 | loff_t from, size_t len, size_t *retlen, u_char *buf) | 516 | loff_t from, size_t len, size_t *retlen, u_char *buf) |
517 | { | 517 | { |
518 | struct dataflash *priv = (struct dataflash *)mtd->priv; | 518 | struct dataflash *priv = mtd->priv; |
519 | int status; | 519 | int status; |
520 | 520 | ||
521 | /* 64 bytes, from 0..63 ... start at 64 on-chip */ | 521 | /* 64 bytes, from 0..63 ... start at 64 on-chip */ |
@@ -532,7 +532,7 @@ static int dataflash_read_fact_otp(struct mtd_info *mtd, | |||
532 | static int dataflash_read_user_otp(struct mtd_info *mtd, | 532 | static int dataflash_read_user_otp(struct mtd_info *mtd, |
533 | loff_t from, size_t len, size_t *retlen, u_char *buf) | 533 | loff_t from, size_t len, size_t *retlen, u_char *buf) |
534 | { | 534 | { |
535 | struct dataflash *priv = (struct dataflash *)mtd->priv; | 535 | struct dataflash *priv = mtd->priv; |
536 | int status; | 536 | int status; |
537 | 537 | ||
538 | /* 64 bytes, from 0..63 ... start at 0 on-chip */ | 538 | /* 64 bytes, from 0..63 ... start at 0 on-chip */ |
@@ -553,7 +553,7 @@ static int dataflash_write_user_otp(struct mtd_info *mtd, | |||
553 | const size_t l = 4 + 64; | 553 | const size_t l = 4 + 64; |
554 | uint8_t *scratch; | 554 | uint8_t *scratch; |
555 | struct spi_transfer t; | 555 | struct spi_transfer t; |
556 | struct dataflash *priv = (struct dataflash *)mtd->priv; | 556 | struct dataflash *priv = mtd->priv; |
557 | int status; | 557 | int status; |
558 | 558 | ||
559 | if (len > 64) | 559 | if (len > 64) |