mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
trace: Remove the const from write functions
The write functions do actually change the contents of memory so it is not correct to use 'const'. Remove it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -86,7 +86,7 @@ u32 iotrace_readl(const void *ptr)
|
||||
return v;
|
||||
}
|
||||
|
||||
void iotrace_writel(ulong value, const void *ptr)
|
||||
void iotrace_writel(ulong value, void *ptr)
|
||||
{
|
||||
add_record(IOT_32 | IOT_WRITE, ptr, value);
|
||||
writel(value, ptr);
|
||||
@@ -102,7 +102,7 @@ u16 iotrace_readw(const void *ptr)
|
||||
return v;
|
||||
}
|
||||
|
||||
void iotrace_writew(ulong value, const void *ptr)
|
||||
void iotrace_writew(ulong value, void *ptr)
|
||||
{
|
||||
add_record(IOT_16 | IOT_WRITE, ptr, value);
|
||||
writew(value, ptr);
|
||||
@@ -118,7 +118,7 @@ u8 iotrace_readb(const void *ptr)
|
||||
return v;
|
||||
}
|
||||
|
||||
void iotrace_writeb(ulong value, const void *ptr)
|
||||
void iotrace_writeb(ulong value, void *ptr)
|
||||
{
|
||||
add_record(IOT_8 | IOT_WRITE, ptr, value);
|
||||
writeb(value, ptr);
|
||||
|
Reference in New Issue
Block a user