From 9ea73d199968f6b1f1640917c2ab95609b5da652 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Mon, 19 Dec 2022 16:22:37 +0530 Subject: drivers/intel/dptf: Add `soc_` prefix for `get_dptf_platform_info()` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch makes the SoC specific callback code more readable by adding `soc_` prefix into the `get_dptf_platform_info()`. In nutshell this patch renames `get_dptf_platform_info()` to `soc_get_dptf_platform_info()`. TEST=Able to build Google/Rex without any compilation issue. Signed-off-by: Subrata Banik Change-Id: I27d6a146d5928e1742f82f85f51ad42656f46344 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71096 Tested-by: build bot (Jenkins) Reviewed-by: Sumeet R Pawnikar --- src/drivers/intel/dptf/dptf.c | 2 +- src/drivers/intel/dptf/dptf.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/drivers/intel') diff --git a/src/drivers/intel/dptf/dptf.c b/src/drivers/intel/dptf/dptf.c index 450451082f..6392f4e8e5 100644 --- a/src/drivers/intel/dptf/dptf.c +++ b/src/drivers/intel/dptf/dptf.c @@ -435,7 +435,7 @@ static void write_open_dptf_device(const struct device *dev, /* Add minimal definitions of DPTF devices into the SSDT */ static void write_device_definitions(const struct device *dev) { - const struct dptf_platform_info *platform_info = get_dptf_platform_info(); + const struct dptf_platform_info *platform_info = soc_get_dptf_platform_info(); const struct drivers_intel_dptf_config *config; struct device *parent; diff --git a/src/drivers/intel/dptf/dptf.h b/src/drivers/intel/dptf/dptf.h index ed258802be..bf383084b0 100644 --- a/src/drivers/intel/dptf/dptf.h +++ b/src/drivers/intel/dptf/dptf.h @@ -28,6 +28,10 @@ struct dptf_platform_info { } tpch_method_names; }; -const struct dptf_platform_info *get_dptf_platform_info(void); +/* + * `soc_get_dptf_platform_info()` is a callback into the SoC directory + * to fill in the `struct dptf_platform_info` data structure. + */ +const struct dptf_platform_info *soc_get_dptf_platform_info(void); #endif /* _DRIVERS_INTEL_DPTF_H_ */ -- cgit v1.2.3