diff options
| author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-09-08 22:01:54 -0400 |
|---|---|---|
| committer | Brian Norris <computersforpeace@gmail.com> | 2014-09-15 19:31:19 -0400 |
| commit | 93e3c8adf6fcf2204ca334237b92c7f8cdafce6f (patch) | |
| tree | 65a83be16dcadf15123b090a11d90dacd2fd7799 | |
| parent | 3157d1ed23098e3b004e78bc342af10d62f820f7 (diff) | |
mtd: denali: change the type of iterators to int
We should rathar use "int" type for loop iterators.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
| -rw-r--r-- | drivers/mtd/nand/denali.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index 60134394bae4..4cb1497fe1c0 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c | |||
| @@ -178,7 +178,7 @@ static void reset_bank(struct denali_nand_info *denali) | |||
| 178 | /* Reset the flash controller */ | 178 | /* Reset the flash controller */ |
| 179 | static uint16_t denali_nand_reset(struct denali_nand_info *denali) | 179 | static uint16_t denali_nand_reset(struct denali_nand_info *denali) |
| 180 | { | 180 | { |
| 181 | uint32_t i; | 181 | int i; |
| 182 | 182 | ||
| 183 | dev_dbg(denali->dev, "%s, Line %d, Function: %s\n", | 183 | dev_dbg(denali->dev, "%s, Line %d, Function: %s\n", |
| 184 | __FILE__, __LINE__, __func__); | 184 | __FILE__, __LINE__, __func__); |
| @@ -499,7 +499,8 @@ static uint16_t denali_nand_timing_set(struct denali_nand_info *denali) | |||
| 499 | { | 499 | { |
| 500 | uint16_t status = PASS; | 500 | uint16_t status = PASS; |
| 501 | uint32_t id_bytes[8], addr; | 501 | uint32_t id_bytes[8], addr; |
| 502 | uint8_t i, maf_id, device_id; | 502 | uint8_t maf_id, device_id; |
| 503 | int i; | ||
| 503 | 504 | ||
| 504 | dev_dbg(denali->dev, | 505 | dev_dbg(denali->dev, |
| 505 | "%s, Line %d, Function: %s\n", | 506 | "%s, Line %d, Function: %s\n", |
| @@ -830,7 +831,8 @@ static int write_data_to_flash_mem(struct denali_nand_info *denali, | |||
| 830 | const uint8_t *buf, | 831 | const uint8_t *buf, |
| 831 | int len) | 832 | int len) |
| 832 | { | 833 | { |
| 833 | uint32_t i, *buf32; | 834 | uint32_t *buf32; |
| 835 | int i; | ||
| 834 | 836 | ||
| 835 | /* | 837 | /* |
| 836 | * verify that the len is a multiple of 4. | 838 | * verify that the len is a multiple of 4. |
| @@ -850,7 +852,8 @@ static int read_data_from_flash_mem(struct denali_nand_info *denali, | |||
| 850 | uint8_t *buf, | 852 | uint8_t *buf, |
| 851 | int len) | 853 | int len) |
| 852 | { | 854 | { |
| 853 | uint32_t i, *buf32; | 855 | uint32_t *buf32; |
| 856 | int i; | ||
| 854 | 857 | ||
| 855 | /* | 858 | /* |
| 856 | * we assume that len will be a multiple of 4, if not it would be nice | 859 | * we assume that len will be a multiple of 4, if not it would be nice |
