aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2014-03-20 07:11:43 -0400
committerBrian Norris <computersforpeace@gmail.com>2014-03-20 07:56:51 -0400
commit3f9d720a4d29834b8362d820537acb042c17e33c (patch)
tree7f51854a2a8ad1aaee9a157476357c8a9c04b83c /drivers/mtd/devices
parent221cff13cacc55b495bac33bf0f79abe59a6f265 (diff)
mtd: st_spi_fsm: Remove useless consts from function arguments
Reported-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> [Brian: tweaked a bit] Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r--drivers/mtd/devices/st_spi_fsm.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c
index aefd48db7ade..d1fb1e55aff7 100644
--- a/drivers/mtd/devices/st_spi_fsm.c
+++ b/drivers/mtd/devices/st_spi_fsm.c
@@ -785,8 +785,7 @@ static void stfsm_wait_seq(struct stfsm *fsm)
785 dev_err(fsm->dev, "timeout on sequence completion\n"); 785 dev_err(fsm->dev, "timeout on sequence completion\n");
786} 786}
787 787
788static void stfsm_read_fifo(struct stfsm *fsm, uint32_t *buf, 788static void stfsm_read_fifo(struct stfsm *fsm, uint32_t *buf, uint32_t size)
789 const uint32_t size)
790{ 789{
791 uint32_t remaining = size >> 2; 790 uint32_t remaining = size >> 2;
792 uint32_t avail; 791 uint32_t avail;
@@ -811,8 +810,8 @@ static void stfsm_read_fifo(struct stfsm *fsm, uint32_t *buf,
811 } 810 }
812} 811}
813 812
814static int stfsm_write_fifo(struct stfsm *fsm, 813static int stfsm_write_fifo(struct stfsm *fsm, const uint32_t *buf,
815 const uint32_t *buf, const uint32_t size) 814 uint32_t size)
816{ 815{
817 uint32_t words = size >> 2; 816 uint32_t words = size >> 2;
818 817
@@ -1544,8 +1543,8 @@ static int stfsm_read(struct stfsm *fsm, uint8_t *buf, uint32_t size,
1544 return 0; 1543 return 0;
1545} 1544}
1546 1545
1547static int stfsm_write(struct stfsm *fsm, const uint8_t *const buf, 1546static int stfsm_write(struct stfsm *fsm, const uint8_t *buf,
1548 const uint32_t size, const uint32_t offset) 1547 uint32_t size, uint32_t offset)
1549{ 1548{
1550 struct stfsm_seq *seq = &fsm->stfsm_seq_write; 1549 struct stfsm_seq *seq = &fsm->stfsm_seq_write;
1551 uint32_t data_pads; 1550 uint32_t data_pads;
@@ -1670,7 +1669,7 @@ static int stfsm_mtd_read(struct mtd_info *mtd, loff_t from, size_t len,
1670 return 0; 1669 return 0;
1671} 1670}
1672 1671
1673static int stfsm_erase_sector(struct stfsm *fsm, const uint32_t offset) 1672static int stfsm_erase_sector(struct stfsm *fsm, uint32_t offset)
1674{ 1673{
1675 struct stfsm_seq *seq = &stfsm_seq_erase_sector; 1674 struct stfsm_seq *seq = &stfsm_seq_erase_sector;
1676 int ret; 1675 int ret;
@@ -1816,7 +1815,7 @@ out1:
1816 return ret; 1815 return ret;
1817} 1816}
1818 1817
1819static void stfsm_read_jedec(struct stfsm *fsm, uint8_t *const jedec) 1818static void stfsm_read_jedec(struct stfsm *fsm, uint8_t *jedec)
1820{ 1819{
1821 const struct stfsm_seq *seq = &stfsm_seq_read_jedec; 1820 const struct stfsm_seq *seq = &stfsm_seq_read_jedec;
1822 uint32_t tmp[2]; 1821 uint32_t tmp[2];