mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Remove dangerous use of ppt* in platform, add use of ppt_pl3_fppt in asus_armoury handler
This commit is contained in:
@@ -238,25 +238,26 @@ pub enum FirmwareAttribute {
|
||||
CoresEfficiency = 2,
|
||||
PptPl1Spl = 3,
|
||||
PptPl2Sppt = 4,
|
||||
PptApuSppt = 5,
|
||||
PptPlatformSppt = 6,
|
||||
PptFppt = 7,
|
||||
NvDynamicBoost = 8,
|
||||
NvTempTarget = 9,
|
||||
DgpuBaseTgp = 10,
|
||||
DgpuTgp = 11,
|
||||
ChargeMode = 12,
|
||||
BootSound = 13,
|
||||
McuPowersave = 14,
|
||||
PanelOverdrive = 15,
|
||||
PanelHdMode = 16,
|
||||
EgpuConnected = 17,
|
||||
EgpuEnable = 18,
|
||||
DgpuDisable = 19,
|
||||
GpuMuxMode = 20,
|
||||
MiniLedMode = 21,
|
||||
PendingReboot = 22,
|
||||
None = 23
|
||||
PptPl3Fppt = 5,
|
||||
PptFppt = 6,
|
||||
PptApuSppt = 7,
|
||||
PptPlatformSppt = 8,
|
||||
NvDynamicBoost = 9,
|
||||
NvTempTarget = 10,
|
||||
DgpuBaseTgp = 11,
|
||||
DgpuTgp = 12,
|
||||
ChargeMode = 13,
|
||||
BootSound = 14,
|
||||
McuPowersave = 15,
|
||||
PanelOverdrive = 16,
|
||||
PanelHdMode = 17,
|
||||
EgpuConnected = 18,
|
||||
EgpuEnable = 19,
|
||||
DgpuDisable = 20,
|
||||
GpuMuxMode = 21,
|
||||
MiniLedMode = 22,
|
||||
PendingReboot = 23,
|
||||
None = 24
|
||||
}
|
||||
|
||||
impl From<&str> for FirmwareAttribute {
|
||||
@@ -267,9 +268,10 @@ impl From<&str> for FirmwareAttribute {
|
||||
"cores_efficiency" => Self::CoresEfficiency,
|
||||
"ppt_pl1_spl" => Self::PptPl1Spl,
|
||||
"ppt_pl2_sppt" => Self::PptPl2Sppt,
|
||||
"ppt_pl3_fppt" => Self::PptPl3Fppt,
|
||||
"ppt_fppt" => Self::PptFppt,
|
||||
"ppt_apu_sppt" => Self::PptApuSppt,
|
||||
"ppt_platform_sppt" => Self::PptPlatformSppt,
|
||||
"ppt_fppt" => Self::PptFppt,
|
||||
"nv_dynamic_boost" => Self::NvDynamicBoost,
|
||||
"nv_temp_target" => Self::NvTempTarget,
|
||||
"dgpu_base_tgp" => Self::DgpuBaseTgp,
|
||||
@@ -298,9 +300,10 @@ impl From<FirmwareAttribute> for &str {
|
||||
FirmwareAttribute::CoresEfficiency => "cores_efficiency",
|
||||
FirmwareAttribute::PptPl1Spl => "ppt_pl1_spl",
|
||||
FirmwareAttribute::PptPl2Sppt => "ppt_pl2_sppt",
|
||||
FirmwareAttribute::PptPl3Fppt => "ppt_pl3_fppt",
|
||||
FirmwareAttribute::PptFppt => "ppt_fppt",
|
||||
FirmwareAttribute::PptApuSppt => "ppt_apu_sppt",
|
||||
FirmwareAttribute::PptPlatformSppt => "ppt_platform_sppt",
|
||||
FirmwareAttribute::PptFppt => "ppt_fppt",
|
||||
FirmwareAttribute::NvDynamicBoost => "nv_dynamic_boost",
|
||||
FirmwareAttribute::NvTempTarget => "nv_temp_target",
|
||||
FirmwareAttribute::DgpuBaseTgp => "dgpu_base_tgp",
|
||||
|
||||
Reference in New Issue
Block a user