[U-Boot] [U-BOOT] [PATCH V2] mtd: nand: Allow caller to pass alternative ID table to nand_scan_ident()

Scott Wood scottwood at freescale.com
Wed Jan 5 22:33:55 CET 2011


On Tue, Jan 04, 2011 at 11:39:04AM +0800, Lei Wen wrote:
> @@ -2580,13 +2579,15 @@ static const struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,
>   * nand_scan_ident - [NAND Interface] Scan for the NAND device
>   * @mtd:	     MTD device structure
>   * @maxchips:	     Number of chips to scan for
> + * @table:	     Alternative NAND ID table
>   *
>   * This is the first phase of the normal nand_scan() function. It
>   * reads the flash ID and sets up MTD fields accordingly.
>   *
>   * The mtd->owner field must be set to the module of the caller.
>   */
> -int nand_scan_ident(struct mtd_info *mtd, int maxchips)
> +int nand_scan_ident(struct mtd_info *mtd, int maxchips,
> +		    struct nand_flash_dev *table)

table should be const here as well.

-Scott



More information about the U-Boot mailing list