diff options
author | Marc Schink <openocd-dev@marcschink.de> | 2017-10-29 15:58:41 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2017-12-06 21:01:19 +0000 |
commit | 2fcbe3b8f7309d3263e58bf2e3e0125d0bacc8d9 (patch) | |
tree | 393022546121fdc52e32387c36a864976fd22e7b /src/target/armv7m.h | |
parent | dba9293a8907516bfec826464ac2896ffaba6da6 (diff) | |
download | riscv-openocd-2fcbe3b8f7309d3263e58bf2e3e0125d0bacc8d9.zip riscv-openocd-2fcbe3b8f7309d3263e58bf2e3e0125d0bacc8d9.tar.gz riscv-openocd-2fcbe3b8f7309d3263e58bf2e3e0125d0bacc8d9.tar.bz2 |
target: Constify parameter of is_armv7m()
Change-Id: Ieea1b0dec88818e9e8d5c8c5d54aa8959556d77b
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/4275
Tested-by: jenkins
Reviewed-by: Christopher Head <chead@zaber.com>
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/target/armv7m.h')
-rw-r--r-- | src/target/armv7m.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/armv7m.h b/src/target/armv7m.h index 284bb9c..6f5d6f9 100644 --- a/src/target/armv7m.h +++ b/src/target/armv7m.h @@ -174,7 +174,7 @@ target_to_armv7m(struct target *target) return container_of(target->arch_info, struct armv7m_common, arm); } -static inline bool is_armv7m(struct armv7m_common *armv7m) +static inline bool is_armv7m(const struct armv7m_common *armv7m) { return armv7m->common_magic == ARMV7M_COMMON_MAGIC; } |