From e079f167a947a3da4edea8d46dd51feb8695ebb8 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Tue, 3 Feb 2015 11:51:45 +0100 Subject: [PATCH] Fix some remarks about using compiler reserverd names dsdt.dsl 3804: Name (_T_0, Zero) Remark 2011 - ^ Use of compiler reserved name (_T_0) --- dsdt.dsl | 100 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/dsdt.dsl b/dsdt.dsl index fd80b31..7dd2477 100644 --- a/dsdt.dsl +++ b/dsdt.dsl @@ -3801,7 +3801,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method { - Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler + Name (T_0, Zero) // _T_x: Emitted by ASL Compiler If ((Arg0 == ToUUID ("886a3f26-600c-4401-b7b1-01e9c2e7e77e"))) { Return ("BLUET") @@ -3821,8 +3821,8 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) { While (One) { - _T_0 = ToInteger (Arg1) - If ((_T_0 == 0x08)) + T_0 = ToInteger (Arg1) + If ((T_0 == 0x08)) { Return (Buffer (0x05) { @@ -3831,7 +3831,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == 0x10)) + If ((T_0 == 0x10)) { Return (Buffer (0x05) { @@ -3840,7 +3840,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == 0x30)) + If ((T_0 == 0x30)) { Return (Buffer (0x05) { @@ -5274,13 +5274,13 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) }) Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method { - Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler + Name (T_0, Zero) // _T_x: Emitted by ASL Compiler If ((Arg0 == ToUUID ("a5fc708f-8775-4ba6-bd0c-ba90a1ec72f8"))) { While (One) { - _T_0 = ToInteger (Arg2) - If ((_T_0 == Zero)) + T_0 = ToInteger (Arg2) + If ((T_0 == Zero)) { If ((Arg1 == One)) { @@ -5299,7 +5299,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == One)) + If ((T_0 == One)) { If ((SDGV == 0xFF)) { @@ -5312,7 +5312,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == 0x02)) + If ((T_0 == 0x02)) { Return (SDGV) /* \SDGV */ } @@ -5371,13 +5371,13 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) }) Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method { - Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler + Name (T_0, Zero) // _T_x: Emitted by ASL Compiler If ((Arg0 == ToUUID ("a5fc708f-8775-4ba6-bd0c-ba90a1ec72f8"))) { While (One) { - _T_0 = ToInteger (Arg2) - If ((_T_0 == Zero)) + T_0 = ToInteger (Arg2) + If ((T_0 == Zero)) { If ((Arg1 == One)) { @@ -5396,7 +5396,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == One)) + If ((T_0 == One)) { If ((SDGV == 0xFF)) { @@ -5409,7 +5409,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == 0x02)) + If ((T_0 == 0x02)) { Return (SDGV) /* \SDGV */ } @@ -5468,13 +5468,13 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) }) Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method { - Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler + Name (T_0, Zero) // _T_x: Emitted by ASL Compiler If ((Arg0 == ToUUID ("a5fc708f-8775-4ba6-bd0c-ba90a1ec72f8"))) { While (One) { - _T_0 = ToInteger (Arg2) - If ((_T_0 == Zero)) + T_0 = ToInteger (Arg2) + If ((T_0 == Zero)) { If ((Arg1 == One)) { @@ -5493,7 +5493,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == One)) + If ((T_0 == One)) { If ((SDGV == 0xFF)) { @@ -5506,7 +5506,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == 0x02)) + If ((T_0 == 0x02)) { Return (SDGV) /* \SDGV */ } @@ -5565,13 +5565,13 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) }) Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method { - Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler + Name (T_0, Zero) // _T_x: Emitted by ASL Compiler If ((Arg0 == ToUUID ("a5fc708f-8775-4ba6-bd0c-ba90a1ec72f8"))) { While (One) { - _T_0 = ToInteger (Arg2) - If ((_T_0 == Zero)) + T_0 = ToInteger (Arg2) + If ((T_0 == Zero)) { If ((Arg1 == One)) { @@ -5590,7 +5590,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == One)) + If ((T_0 == One)) { If ((SDGV == 0xFF)) { @@ -5603,7 +5603,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == 0x02)) + If ((T_0 == 0x02)) { Return (SDGV) /* \SDGV */ } @@ -9889,26 +9889,26 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method { - Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler - Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler + Name (T_1, Zero) // _T_x: Emitted by ASL Compiler + Name (T_0, Zero) // _T_x: Emitted by ASL Compiler If ((Arg0 == ToUUID ("a9240c44-f032-454d-80e5-7aeed80e9551"))) { CreateByteField (Arg3, Zero, FARG) While (One) { - _T_0 = Arg2 - If ((_T_0 == 0x03)) + T_0 = Arg2 + If ((T_0 == 0x03)) { While (One) { - _T_1 = Arg3 - If ((_T_1 == Zero)) + T_1 = Arg3 + If ((T_1 == Zero)) { Return (0x11) } Else { - If ((_T_1 == 0x04)) + If ((T_1 == 0x04)) { Return (Buffer (0x34) { @@ -11413,20 +11413,20 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method { - Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler - Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler + Name (T_1, Zero) // _T_x: Emitted by ASL Compiler + Name (T_0, Zero) // _T_x: Emitted by ASL Compiler Debug = "Method _DSM begin" If ((Arg0 == ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de") /* HID I2C Device */)) { While (One) { - _T_0 = ToInteger (Arg2) - If ((_T_0 == Zero)) + T_0 = ToInteger (Arg2) + If ((T_0 == Zero)) { While (One) { - _T_1 = ToInteger (Arg1) - If ((_T_1 == One)) + T_1 = ToInteger (Arg1) + If ((T_1 == One)) { Debug = "Method _DSM Function Query" Return (Buffer (One) @@ -11447,7 +11447,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == One)) + If ((T_0 == One)) { Debug = "Method _DSM Function HID" Return (Zero) @@ -12090,20 +12090,20 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method { - Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler - Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler + Name (T_1, Zero) // _T_x: Emitted by ASL Compiler + Name (T_0, Zero) // _T_x: Emitted by ASL Compiler Debug = "Method _DSM begin" If ((Arg0 == ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de") /* HID I2C Device */)) { While (One) { - _T_0 = ToInteger (Arg2) - If ((_T_0 == Zero)) + T_0 = ToInteger (Arg2) + If ((T_0 == Zero)) { While (One) { - _T_1 = ToInteger (Arg1) - If ((_T_1 == One)) + T_1 = ToInteger (Arg1) + If ((T_1 == One)) { Debug = "Method _DSM Function Query" Return (Buffer (One) @@ -12124,7 +12124,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == One)) + If ((T_0 == One)) { Debug = "Method _DSM Function HID" Return (Zero) @@ -14499,13 +14499,13 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method { - Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler + Name (T_0, Zero) // _T_x: Emitted by ASL Compiler If ((Arg0 == ToUUID ("dfbcf3c5-e7a5-44e6-9c1f-29c76f6e059c") /* Power Button Device */)) { While (One) { - _T_0 = ToInteger (Arg2) - If ((_T_0 == Zero)) + T_0 = ToInteger (Arg2) + If ((T_0 == Zero)) { Return (Buffer (One) { @@ -14514,7 +14514,7 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) } Else { - If ((_T_0 == One)) + If ((T_0 == One)) { Return (0x07) } -- 2.1.4