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>
This commit is contained in:
parent
be72a4aa8e
commit
e30b46909b
@ -325,7 +325,7 @@ struct denali_nand_info {
|
|||||||
struct nand_buf buf;
|
struct nand_buf buf;
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
int total_used_banks;
|
int total_used_banks;
|
||||||
uint16_t page;
|
int page;
|
||||||
void __iomem *flash_reg; /* Register Interface */
|
void __iomem *flash_reg; /* Register Interface */
|
||||||
void __iomem *flash_mem; /* Host Data/Command Interface */
|
void __iomem *flash_mem; /* Host Data/Command Interface */
|
||||||
|
|
||||||
@ -335,9 +335,9 @@ struct denali_nand_info {
|
|||||||
uint32_t irq_status;
|
uint32_t irq_status;
|
||||||
int irq;
|
int irq;
|
||||||
|
|
||||||
uint32_t devnum; /* represent how many nands connected */
|
int devnum; /* represent how many nands connected */
|
||||||
uint32_t bbtskipbytes;
|
int bbtskipbytes;
|
||||||
uint32_t max_banks;
|
int max_banks;
|
||||||
unsigned int caps;
|
unsigned int caps;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user