flash/nor: Pass flash_bank to memory accessors 46/5146/16
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 21 Apr 2019 14:28:10 +0000 (16:28 +0200)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 16 Jan 2020 12:25:44 +0000 (12:25 +0000)
commitf83ce0a2ef7fa9c844d4591e4586911c14c44ac8
treeb3e639d0fc60083c32c8e5fa11b283eacb30351c
parent7fffa3cbc6f85480eaf1498d30c45af5933bd017
flash/nor: Pass flash_bank to memory accessors

Replace passing in struct target with passing in struct flash_bank,
so that the later can contain function pointers to custom per-driver
memory accessor functions.

Change-Id: Id2573a6d5f1a73ed9c4f73c53592a9a335a11c99
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Reviewed-on: http://openocd.zylin.com/5146
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/flash/nor/cfi.c