]> git.gag.com Git - fw/openocd/commit
arm_adi_v5: use macro DP_APSEL_MAX in place of magic number
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 4 Aug 2021 22:37:32 +0000 (00:37 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 14 Aug 2021 12:31:06 +0000 (13:31 +0100)
commit3ce70962d144406adb58a34f892dc370df9d5475
tree68654dffc78e09044d788ff1df57b0325ac1b6e9
parent48282fbce06fbcf490d857ec9da8c4d603f379c2
arm_adi_v5: use macro DP_APSEL_MAX in place of magic number

Commit 11019a824d02 ("adi_v5: enforce check on AP number value")
introduces the macro DP_APSEL_MAX and use it in place of hardcoded
magic numbers for the upper limit of AP selection value.

Fix one more place where the macro should be used.

Change-Id: I6c57f72405c69bbb40924221309d95dfeb5f7540
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Fixes: 11019a824d02 ("adi_v5: enforce check on AP number value")
Reviewed-on: http://openocd.zylin.com/6415
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
src/target/arm_adi_v5.c