drivers/intel/dptf: Add `soc_` prefix for `get_dptf_platform_info()`

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 <subratabanik@google.com>
Change-Id: I27d6a146d5928e1742f82f85f51ad42656f46344
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71096
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com>
This commit is contained in:
Subrata Banik 2022-12-19 16:22:37 +05:30
parent 193f39bfd5
commit 9ea73d1999
7 changed files with 11 additions and 7 deletions

View File

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

View File

@ -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_ */

View File

@ -28,7 +28,7 @@ static const struct dptf_platform_info adl_dptf_platform_info = {
},
};
const struct dptf_platform_info *get_dptf_platform_info(void)
const struct dptf_platform_info *soc_get_dptf_platform_info(void)
{
return &adl_dptf_platform_info;
}

View File

@ -12,7 +12,7 @@ static const struct dptf_platform_info apl_dptf_platform_info = {
.fan_hid = "INT3404",
};
const struct dptf_platform_info *get_dptf_platform_info(void)
const struct dptf_platform_info *soc_get_dptf_platform_info(void)
{
return &apl_dptf_platform_info;
}

View File

@ -12,7 +12,7 @@ static const struct dptf_platform_info cnl_dptf_platform_info = {
.fan_hid = "INT3404",
};
const struct dptf_platform_info *get_dptf_platform_info(void)
const struct dptf_platform_info *soc_get_dptf_platform_info(void)
{
return &cnl_dptf_platform_info;
}

View File

@ -12,7 +12,7 @@ static const struct dptf_platform_info jsl_dptf_platform_info = {
.fan_hid = "INT3404",
};
const struct dptf_platform_info *get_dptf_platform_info(void)
const struct dptf_platform_info *soc_get_dptf_platform_info(void)
{
return &jsl_dptf_platform_info;
}

View File

@ -13,7 +13,7 @@ static const struct dptf_platform_info tgl_dptf_platform_info = {
.fan_hid = "INTC1044",
};
const struct dptf_platform_info *get_dptf_platform_info(void)
const struct dptf_platform_info *soc_get_dptf_platform_info(void)
{
return &tgl_dptf_platform_info;
}