mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
mtd: nand: change return type of nand_get_flash_type() to int
Upstream linux commit 4722c0e958e636. The returned "type" is never used in nand_scan_ident() and spl code Make nand_get_flash_type() simply return an integer value in order to avoid unnecessary ERR_PTR/PTR_ERR dance. Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Reviewed-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
This commit is contained in:
@@ -29,9 +29,8 @@ struct nand_flash_dev;
|
||||
struct device_node;
|
||||
|
||||
/* Get the flash and manufacturer id and lookup if the type is supported. */
|
||||
struct nand_flash_dev *nand_get_flash_type(struct nand_chip *chip,
|
||||
int *maf_id, int *dev_id,
|
||||
struct nand_flash_dev *type);
|
||||
int nand_get_flash_type(struct nand_chip *chip, int *maf_id, int *dev_id,
|
||||
struct nand_flash_dev *type);
|
||||
|
||||
/* Scan and identify a NAND device */
|
||||
int nand_scan(struct mtd_info *mtd, int max_chips);
|
||||
|
Reference in New Issue
Block a user