]> git.sur5r.net Git - openocd/commitdiff
target: Constify parameter of is_armv7m()
authorMarc Schink <openocd-dev@marcschink.de>
Sun, 29 Oct 2017 14:58:41 +0000 (15:58 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 6 Dec 2017 21:01:19 +0000 (21:01 +0000)
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>
src/target/armv7m.h

index 284bb9caa8566e0b573decb77e4898bc4b354598..6f5d6f9952bab418b91c574b5ff4476a78347ff3 100644 (file)
@@ -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;
 }