Fix the TCS0 identifier and get rid of the _DSM method
authorAntonio Ospite <ao2@ao2.it>
Thu, 26 Feb 2015 12:49:38 +0000 (13:49 +0100)
committerAntonio Ospite <ao2@ao2.it>
Thu, 16 Apr 2015 12:56:24 +0000 (14:56 +0200)
The touchscreen is not an I2C-HID device, so don't use the "PNP0C50"
identifier and the _DSM method.

While at it, also use "GDIX1001" as an _HID so that the linux driver
does not need to be changed.

dsdt.dsl

index e9c8f8b..24f5bc9 100644 (file)
--- a/dsdt.dsl
+++ b/dsdt.dsl
@@ -11553,8 +11553,8 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003)
             Device (TCS0)
             {
                 Name (_ADR, Zero)  // _ADR: Address
-                Name (_HID, "GODX0911")  // _HID: Hardware ID
-                Name (_CID, "PNP0C50" /* HID Protocol Device (I2C bus) */)  // _CID: Compatible ID
+                Name (_HID, "GDIX1001")  // _HID: Hardware ID
+                Name (_CID, "GDIX1001" /* HID Protocol Device (I2C bus) */)  // _CID: Compatible ID
                 Name (_S0W, Zero)  // _S0W: S0 Device Wake State
                 Name (_DEP, Package (0x02)  // _DEP: Dependencies
                 {
@@ -11628,65 +11628,6 @@ 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
-                    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))
-                            {
-                                While (One)
-                                {
-                                    T_1 = ToInteger (Arg1)
-                                    If ((T_1 == One))
-                                    {
-                                        Debug = "Method _DSM Function Query"
-                                        Return (Buffer (One)
-                                        {
-                                             0x03                                             /* . */
-                                        })
-                                    }
-                                    Else
-                                    {
-                                        Return (Buffer (One)
-                                        {
-                                             0x00                                             /* . */
-                                        })
-                                    }
-
-                                    Break
-                                }
-                            }
-                            Else
-                            {
-                                If ((T_0 == One))
-                                {
-                                    Debug = "Method _DSM Function HID"
-                                    Return (Zero)
-                                }
-                                Else
-                                {
-                                    Return (Zero)
-                                }
-                            }
-
-                            Break
-                        }
-                    }
-                    Else
-                    {
-                        Return (Buffer (One)
-                        {
-                             0x00                                             /* . */
-                        })
-                    }
-                }
-
                 Method (_STA, 0, NotSerialized)  // _STA: Status
                 {
                     If ((OSSL == 0x83))