soc/amd/common/acp: use clrsetbits32p to avoid need for casts
Use clrsetbits32p instead of clrsetbits32 to not need to cast the uintptr_t address to void * in the function call. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ic29bf04866a7e1d5c831422f31803a724a41069b Reviewed-on: https://review.coreboot.org/c/coreboot/+/80700 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
|
||||
static void acp_update32(uintptr_t bar, uint32_t reg, uint32_t clear, uint32_t set)
|
||||
{
|
||||
clrsetbits32((void *)(bar + reg), clear, set);
|
||||
clrsetbits32p(bar + reg, clear, set);
|
||||
}
|
||||
|
||||
void acp_init(struct device *dev)
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
static void acp_update32(uintptr_t bar, uint32_t reg, uint32_t clear, uint32_t set)
|
||||
{
|
||||
clrsetbits32((void *)(bar + reg), clear, set);
|
||||
clrsetbits32p(bar + reg, clear, set);
|
||||
}
|
||||
|
||||
void acp_init(struct device *dev)
|
||||
|
Reference in New Issue
Block a user