From 38bf496366bfb8c718345869311f6d46a8922486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Niew=C3=B6hner?= Date: Mon, 27 Sep 2021 23:55:05 +0200 Subject: soc/intel/{cnl,jsl,tgl,ehl,adl}: rename PMC device init/enable callbacks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The current names of the PMC init/enable callbacks are very confusing. Rename them. Change-Id: I69f54f3b4e1ea9a9b4fa5c8dd9c0d454d7cd1283 Signed-off-by: Michael Niewöhner Reviewed-on: https://review.coreboot.org/c/coreboot/+/57995 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Felix Singer Reviewed-by: Angel Pons --- src/soc/intel/alderlake/pmc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/soc/intel/alderlake/pmc.c') diff --git a/src/soc/intel/alderlake/pmc.c b/src/soc/intel/alderlake/pmc.c index 0e0a568a88..6f9b03b16f 100644 --- a/src/soc/intel/alderlake/pmc.c +++ b/src/soc/intel/alderlake/pmc.c @@ -66,7 +66,7 @@ static void config_deep_sx(uint32_t deepsx_config) write32(pmcbase + DSX_CFG, reg); } -static void pmc_init(struct device *dev) +static void soc_pmc_enable(struct device *dev) { const config_t *config = config_of_soc(); @@ -140,7 +140,7 @@ static void soc_pmc_fill_ssdt(const struct device *dev) dev_path(dev)); } -static void soc_acpi_mode_init(struct device *dev) +static void soc_pmc_init(struct device *dev) { /* * pmc_set_acpi_mode() should be delayed until BS_DEV_INIT in order @@ -165,8 +165,8 @@ BOOT_STATE_INIT_ENTRY(BS_DEV_INIT_CHIPS, BS_ON_EXIT, pm1_enable_pwrbtn_smi, NULL struct device_operations pmc_ops = { .read_resources = soc_pmc_read_resources, .set_resources = noop_set_resources, - .init = soc_acpi_mode_init, - .enable = pmc_init, + .init = soc_pmc_init, + .enable = soc_pmc_enable, #if CONFIG(HAVE_ACPI_TABLES) .acpi_fill_ssdt = soc_pmc_fill_ssdt, #endif -- cgit v1.2.3