drivers/intel/dptf: Suppress unnecessary static function

This commit eliminates the superfluous get_dptf_platform_info() static
function.

Change-Id: I0b9d150bab8486cb7e437d5e2b3caa880e14f886
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86130
Reviewed-by: Jamie Ryu <jamie.m.ryu@intel.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Bora Guvendik <bora.guvendik@intel.com>
This commit is contained in:
Jeremy Compostella 2025-01-23 09:16:35 -08:00 committed by Elyes Haouas
commit c34c65d175

View file

@ -496,15 +496,10 @@ static const struct dptf_platform_info generic_dptf_platform_info = {
#endif
};
static const struct dptf_platform_info *get_dptf_platform_info(void)
{
return &generic_dptf_platform_info;
}
/* 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 = &generic_dptf_platform_info;
const struct drivers_intel_dptf_config *config;
struct device *parent;
enum dptf_participant p;