aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmc/ssram_telemetry.c
diff options
context:
space:
mode:
authorXi Pardee <[email protected]>2025-04-09 19:10:46 +0000
committerIlpo Järvinen <[email protected]>2025-04-11 12:26:06 +0000
commit052fabddeaa70bdb256cbdae152291bd8a1bee0c (patch)
treea6050758f656785fb13d0771aedb02b0b9bff788 /drivers/platform/x86/intel/pmc/ssram_telemetry.c
parentplatform/x86:intel/pmc: Move PMC devid to core.h (diff)
downloadkernel-052fabddeaa70bdb256cbdae152291bd8a1bee0c.tar.gz
kernel-052fabddeaa70bdb256cbdae152291bd8a1bee0c.zip
platform/x86:intel/pmc: Convert index variables to be unsigned
Convert the index variables type to be unsigned to avoid confusion and error. Signed-off-by: Xi Pardee <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmc/ssram_telemetry.c')
-rw-r--r--drivers/platform/x86/intel/pmc/ssram_telemetry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/pmc/ssram_telemetry.c b/drivers/platform/x86/intel/pmc/ssram_telemetry.c
index e1a83425d802..10ead4398a68 100644
--- a/drivers/platform/x86/intel/pmc/ssram_telemetry.c
+++ b/drivers/platform/x86/intel/pmc/ssram_telemetry.c
@@ -74,7 +74,7 @@ static inline u64 get_base(void __iomem *addr, u32 offset)
}
static int
-pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset)
+pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, unsigned int pmc_idx, u32 offset)
{
struct pci_dev *ssram_pcidev = pmcdev->ssram_pcidev;
void __iomem __free(pmc_core_iounmap) *tmp_ssram = NULL;