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:
Felix Held
2024-02-22 14:53:21 +01:00
parent 4e3d2a16ff
commit e1fc17f3c3
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)