summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/h8/acpi/thinkpad.asl
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-26 08:17:06 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-27 09:03:34 +0000
commitca4b587f95c0f1ed64e187511781abdfd4c7ebfb (patch)
treebc5c5a324c65b107fd6d992167168b0383a63503 /src/ec/lenovo/h8/acpi/thinkpad.asl
parentb4767ce169b202af2a9091275e30881172810fc6 (diff)
{superio,ec}/acpi: Replace constant "One" with actual number
Change-Id: I5c77b6d1e1dc1134f62dcb3e93df01dc9c2f386c Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71520 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/lenovo/h8/acpi/thinkpad.asl')
-rw-r--r--src/ec/lenovo/h8/acpi/thinkpad.asl20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ec/lenovo/h8/acpi/thinkpad.asl b/src/ec/lenovo/h8/acpi/thinkpad.asl
index fea97c15df..73eee52deb 100644
--- a/src/ec/lenovo/h8/acpi/thinkpad.asl
+++ b/src/ec/lenovo/h8/acpi/thinkpad.asl
@@ -51,7 +51,7 @@ Device (HKEY)
/* Report event */
Method (RHK, 1, NotSerialized) {
- Local0 = One << (Arg0 - 1)
+ Local0 = 1 << (Arg0 - 1)
If (EMSK & Local0) {
BTN = Arg0
Notify (HKEY, 0x80)
@@ -60,7 +60,7 @@ Device (HKEY)
/* Report tablet */
Method (RTAB, 1, NotSerialized) {
- Local0 = One << (Arg0 - 1)
+ Local0 = 1 << (Arg0 - 1)
If (ETAB & Local0) {
BTAB = Arg0
Notify (HKEY, 0x80)
@@ -84,7 +84,7 @@ Device (HKEY)
/* Enable/disable event. */
Method (MHKM, 2, NotSerialized) {
If (Arg0 <= 0x20) {
- Local0 = One << (Arg0 - 1)
+ Local0 = 1 << (Arg0 - 1)
If (Arg1)
{
DHKN |= Local0
@@ -159,10 +159,10 @@ Device (HKEY)
*/
Method (GBDC, 0)
{
- HAST = One
+ HAST = 1
If (HBDC) {
- Local0 = One
+ Local0 = 1
If(\_SB.PCI0.LPCB.EC.BTEB)
{
Local0 |= 2
@@ -181,7 +181,7 @@ Device (HKEY)
*/
Method (SBDC, 1)
{
- HAST = One
+ HAST = 1
If (HBDC) {
Local0 = (Arg0 & 2) >> 1
@@ -201,10 +201,10 @@ Device (HKEY)
*/
Method (GWAN, 0)
{
- HAST = One
+ HAST = 1
If (HWAN) {
- Local0 = One
+ Local0 = 1
If(\_SB.PCI0.LPCB.EC.WWEB)
{
Local0 |= 2
@@ -223,7 +223,7 @@ Device (HKEY)
*/
Method (SWAN, 1)
{
- HAST = One
+ HAST = 1
If (HWAN) {
Local0 = (Arg0 & 2) >> 1
@@ -270,7 +270,7 @@ Device (HKEY)
Method (GUWB, 0)
{
If (HUWB) {
- Local0 = One
+ Local0 = 1
If(\_SB.PCI0.LPCB.EC.UWBE)
{
Local0 |= 2