summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/denali.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-03-23 05:07:08 +0900
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-03-24 09:51:41 +0100
commite30b46909bdf3ac8699a47cfd64b44fabc29f253 (patch)
treee2ef8cde884a2ca2da3f5ee4eeff662cc0467dc1 /drivers/mtd/nand/denali.h
parentbe72a4aa8ec1c13a55708bd0285106a5020ff72f (diff)
downloadlinux-e30b46909bdf3ac8699a47cfd64b44fabc29f253.tar.bz2
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/denali.h')
-rw-r--r--drivers/mtd/nand/denali.h8
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 {
struct nand_buf buf;
struct device *dev;
int total_used_banks;
- uint16_t page;
+ int page;
void __iomem *flash_reg; /* Register Interface */
void __iomem *flash_mem; /* Host Data/Command Interface */
@@ -335,9 +335,9 @@ struct denali_nand_info {
uint32_t irq_status;
int irq;
- uint32_t devnum; /* represent how many nands connected */
- uint32_t bbtskipbytes;
- uint32_t max_banks;
+ int devnum; /* represent how many nands connected */
+ int bbtskipbytes;
+ int max_banks;
unsigned int caps;
};