OSDN Git Service

platform/x86/amd/pmf: Add helper routine to update SPS thermals
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Wed, 25 Jan 2023 09:59:32 +0000 (15:29 +0530)
committerHans de Goede <hdegoede@redhat.com>
Mon, 30 Jan 2023 13:30:57 +0000 (14:30 +0100)
commitc5258d39fc4cbed37e20945715e7eb102f26d65b
treed8806b0a7229972f13d82c2b042fbd7a17304b04
parent1bc5d819f0b9784043ea08570e1b21107aa35739
platform/x86/amd/pmf: Add helper routine to update SPS thermals

Add helper routine to update the static slider information
and remove the duplicate code occurrences after this change.

Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230125095936.3292883-2-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmf/auto-mode.c
drivers/platform/x86/amd/pmf/cnqf.c
drivers/platform/x86/amd/pmf/pmf.h
drivers/platform/x86/amd/pmf/sps.c