flash/nor: Drop size argument of cfi_target_{read,write}_memory()
commit515a30f7200d69a41610984bee6dc4d967056ad4
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 5 Jan 2020 16:26:18 +0000 (5 17:26 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 16 Jan 2020 12:25:53 +0000 (16 12:25 +0000)
treec76c57fc9ef5821c87ca55d0d955e5aae92b3ec6
parentf83ce0a2ef7fa9c844d4591e4586911c14c44ac8
flash/nor: Drop size argument of cfi_target_{read,write}_memory()

The size argument is always set to bank->bus_width and bank pointer
is now passed into cfi_target_{read,write}_memory(), so the size
can be accessed through the bank pointer inside the function instead
of being explicitly passed in.

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