diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-03-22 16:07:08 -0400 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-03-24 04:51:41 -0400 |
commit | e30b46909bdf3ac8699a47cfd64b44fabc29f253 (patch) | |
tree | e2ef8cde884a2ca2da3f5ee4eeff662cc0467dc1 /drivers/mtd/nand | |
parent | be72a4aa8ec1c13a55708bd0285106a5020ff72f (diff) |
mtd: nand: denali: use int where no reason to use fixed width variable
The page number is generally stored in an integer type variable.
The uint16_t does not have enough width. I see no reason to use
uint32_t for other members, either. Just use int.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/denali.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/nand/denali.h b/drivers/mtd/nand/denali.h index eed001dde3b4..7b2d7851ed7b 100644 --- a/drivers/mtd/nand/denali.h +++ b/drivers/mtd/nand/denali.h | |||
@@ -325,7 +325,7 @@ struct denali_nand_info { | |||
325 | struct nand_buf buf; | 325 | struct nand_buf buf; |
326 | struct device *dev; | 326 | struct device *dev; |
327 | int total_used_banks; | 327 | int total_used_banks; |
328 | uint16_t page; | 328 | int page; |
329 | void __iomem *flash_reg; /* Register Interface */ | 329 | void __iomem *flash_reg; /* Register Interface */ |
330 | void __iomem *flash_mem; /* Host Data/Command Interface */ | 330 | void __iomem *flash_mem; /* Host Data/Command Interface */ |
331 | 331 | ||
@@ -335,9 +335,9 @@ struct denali_nand_info { | |||
335 | uint32_t irq_status; | 335 | uint32_t irq_status; |
336 | int irq; | 336 | int irq; |
337 | 337 | ||
338 | uint32_t devnum; /* represent how many nands connected */ | 338 | int devnum; /* represent how many nands connected */ |
339 | uint32_t bbtskipbytes; | 339 | int bbtskipbytes; |
340 | uint32_t max_banks; | 340 | int max_banks; |
341 | unsigned int caps; | 341 | unsigned int caps; |
342 | }; | 342 | }; |
343 | 343 | ||