[U-Boot] [PATCH] mtd: nand: Allow caller to pass alternative ID table to nand_scan_ident()
Mike Frysinger
vapier at gentoo.org
Mon Jan 3 17:32:50 CET 2011
On Mon, Jan 3, 2011 at 10:48 AM, Lei Wen wrote:
> On Mon, Jan 3, 2011 at 11:35 PM, Mike Frysinger wrote:
>> On Mon, Jan 3, 2011 at 10:06 AM, Lei Wen wrote:
>>> --- a/drivers/mtd/nand/nand_ids.c
>>> +++ b/drivers/mtd/nand/nand_ids.c
>>> -const struct nand_flash_dev nand_flash_ids[] = {
>>> +struct nand_flash_dev nand_flash_ids[] = {
>>
>> this is wrong
>
> This would bring warning to the compilation, and it is also what Linux
> does now for the same code...
then fix the callers to take a const flash table instead of removing
the const markings on a const table
-mike
More information about the U-Boot
mailing list