flash: nand: move in include file the declaration of 'nand_devices'
commit5308bd991ca63e56c272af47ad6dacf7e4c75569
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 6 May 2023 20:09:06 +0000 (6 22:09 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Thu, 18 May 2023 10:15:41 +0000 (18 10:15 +0000)
tree6c711371d7db1e822ea92ade1495c961063dd9e1
parentd5c177cd3def7002f18270742ff3b1380feb45c5
flash: nand: move in include file the declaration of 'nand_devices'

The pointer nand_devices is used in two file.

Move the extern prototype in code.h

Detected through 'sparse' tool.

Change-Id: I7237359fd1a008770a624725cd0b3d8632b4166e
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7674
Tested-by: jenkins
src/flash/nand/core.h
src/flash/nand/tcl.c