mtd: rawnand: Make maxchips an unsigned int
There's no good reason to make maxchips a signed integer, since only positive values are valid. Make it an unsigned int. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
committed by
Miquel Raynal
parent
480bdd8b7a
commit
871a4073f4
@@ -28,10 +28,10 @@ struct nand_chip;
|
||||
struct nand_flash_dev;
|
||||
|
||||
/* Scan and identify a NAND device */
|
||||
int nand_scan_with_ids(struct nand_chip *chip, int max_chips,
|
||||
int nand_scan_with_ids(struct nand_chip *chip, unsigned int max_chips,
|
||||
struct nand_flash_dev *ids);
|
||||
|
||||
static inline int nand_scan(struct nand_chip *chip, int max_chips)
|
||||
static inline int nand_scan(struct nand_chip *chip, unsigned int max_chips)
|
||||
{
|
||||
return nand_scan_with_ids(chip, max_chips, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user