flash/nor: move variable's declaration in C file
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 5 Sep 2022 22:57:11 +0000 (00:57 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Tue, 13 Sep 2022 22:13:50 +0000 (22:13 +0000)
commitefa2068f1a2b1d6e96c9aa4067174787207ff2bc
treefb3775e4f6597429fef552169c080657f38c3895
parenta79927dd925362850169c500058f457e1ad4e457
flash/nor: move variable's declaration in C file

Variables should not be declared in the include file, otherwise
multiple include will cause multiple instances.

Move the declaration in the C file and make it static.

Change-Id: I8b4884cba643a792a78df4e123aa324b19d92279
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7172
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
src/flash/nor/cc26xx.c
src/flash/nor/cc26xx.h
src/flash/nor/cc3220sf.c
src/flash/nor/cc3220sf.h
src/flash/nor/msp432.c
src/flash/nor/msp432.h