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 <gabeblack@google.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/63777
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
Reviewed-on: http://review.coreboot.org/4400
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Gabe Black 2013-07-30 13:52:27 -07:00 committed by Patrick Georgi
parent 713853a9c8
commit dd8f60363a
1 changed files with 3 additions and 3 deletions

View File

@ -45,21 +45,21 @@ static inline uint32_t read32(const void *addr)
return *(volatile uint32_t *)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(); dmb();
*(volatile uint8_t *)addr = val; *(volatile uint8_t *)addr = val;
dmb(); dmb();
} }
static inline void write16(uint16_t val, const void *addr) static inline void write16(uint16_t val, void *addr)
{ {
dmb(); dmb();
*(volatile uint16_t *)addr = val; *(volatile uint16_t *)addr = val;
dmb(); dmb();
} }
static inline void write32(uint32_t val, const void *addr) static inline void write32(uint32_t val, void *addr)
{ {
dmb(); dmb();
*(volatile uint32_t *)addr = val; *(volatile uint32_t *)addr = val;