From 9a1853a98c6760ec42c8850487eb90cc6def6d3f Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Fri, 19 Feb 2021 17:56:29 +0100 Subject: [PATCH] soc/intel/{cnl,icl}: Use matching type cast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie534a05f8d3945492ab5b817522486cdcd3c4cab Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/50932 Reviewed-by: Michael Niewöhner Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) --- src/soc/intel/cannonlake/pmutil.c | 2 +- src/soc/intel/icelake/pmutil.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/intel/cannonlake/pmutil.c b/src/soc/intel/cannonlake/pmutil.c index bf4e34fafb..d6ecd8bb1f 100644 --- a/src/soc/intel/cannonlake/pmutil.c +++ b/src/soc/intel/cannonlake/pmutil.c @@ -117,7 +117,7 @@ void pmc_set_disb(void) /* Set the DISB after DRAM init */ uint8_t disb_val; /* Only care about bits [23:16] of register GEN_PMCON_A */ - uint8_t *addr = (void *)(pmc_mmio_regs() + GEN_PMCON_A + 2); + uint8_t *addr = (uint8_t *)(pmc_mmio_regs() + GEN_PMCON_A + 2); disb_val = read8(addr); disb_val |= (DISB >> 16); diff --git a/src/soc/intel/icelake/pmutil.c b/src/soc/intel/icelake/pmutil.c index 9cc6f02df2..894894f95b 100644 --- a/src/soc/intel/icelake/pmutil.c +++ b/src/soc/intel/icelake/pmutil.c @@ -116,7 +116,7 @@ void pmc_set_disb(void) /* Set the DISB after DRAM init */ uint8_t disb_val; /* Only care about bits [23:16] of register GEN_PMCON_A */ - uint8_t *addr = (void *)(pmc_mmio_regs() + GEN_PMCON_A + 2); + uint8_t *addr = (uint8_t *)(pmc_mmio_regs() + GEN_PMCON_A + 2); disb_val = read8(addr); disb_val |= (DISB >> 16);