From dd8f60363a007b43714fa8c0a6044fb6c7fb9866 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 30 Jul 2013 13:52:27 -0700 Subject: arm: Don't use const pointers with the write functions This functions are by definition changing the data pointed to by their arguments, so they shouldn't by const. Change-Id: Id29b3f76526aba463f8bb744f53101327f9c7bde Signed-off-by: Gabe Black Reviewed-on: https://gerrit.chromium.org/gerrit/63777 Commit-Queue: Gabe Black Reviewed-by: Gabe Black Tested-by: Gabe Black Reviewed-on: http://review.coreboot.org/4400 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/arch/armv7/include/arch/io.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/arch/armv7/include/arch/io.h b/src/arch/armv7/include/arch/io.h index be1da51c71..e044090e68 100644 --- a/src/arch/armv7/include/arch/io.h +++ b/src/arch/armv7/include/arch/io.h @@ -45,21 +45,21 @@ static inline uint32_t read32(const void *addr) return *(volatile uint32_t *)addr; } -static inline void write8(uint8_t val, const void *addr) +static inline void write8(uint8_t val, void *addr) { dmb(); *(volatile uint8_t *)addr = val; dmb(); } -static inline void write16(uint16_t val, const void *addr) +static inline void write16(uint16_t val, void *addr) { dmb(); *(volatile uint16_t *)addr = val; dmb(); } -static inline void write32(uint32_t val, const void *addr) +static inline void write32(uint32_t val, void *addr) { dmb(); *(volatile uint32_t *)addr = val; -- cgit v1.2.3