ec/starlabs/merlin: Add spaces to adhere to coding style

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Change-Id: I0e965513d5888398834cab8c8445e97372f2b115
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62332
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Andy Pont <andy.pont@sdcsystems.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
Sean Rhodes 2022-02-24 10:40:57 +00:00 committed by Felix Held
parent e1ff978c9a
commit f6ea89d684
5 changed files with 23 additions and 24 deletions

View File

@ -10,7 +10,7 @@ Device (ADP1)
Method (_PSR, 0)
{
PWRS = ECPS & 0x01
Return(PWRS)
Return (PWRS)
}
Method (_PCL, 0)
{

View File

@ -9,13 +9,13 @@ Device (BAT0)
// Battery Status
// 0x80 BIT1 0x01 = Present
// 0x80 BIT1 0x00 = Not Present
If(ECPS & 0x02)
If (ECPS & 0x02)
{
Return(0x1F)
Return (0x1F)
}
Return(0x0F)
Return (0x0F)
}
Name (BPKG, Package(13)
Name (BPKG, Package (13)
{
1, // 0: Power Unit
0xFFFFFFFF, // 1: Design Capacity
@ -36,20 +36,20 @@ Device (BAT0)
BPKG[1] = B1DC
BPKG[2] = B1FC
BPKG[4] = B1DV
If(B1FC)
If (B1FC)
{
BPKG[5] = B1FC / 10
BPKG[6] = B1FC / 100
BPKG[7] = B1DC / 100
}
Return(BPKG)
Return (BPKG)
}
Name (PKG1, Package (4)
{
0xFFFFFFFF, // Battery State
0xFFFFFFFF, // Battery Present Rate
0xFFFFFFFF, // Battery Remaining Capacity
0xFFFFFFFF, // Battery Present Voltage
0xFFFFFFFF, // Battery State
0xFFFFFFFF, // Battery Present Rate
0xFFFFFFFF, // Battery Remaining Capacity
0xFFFFFFFF, // Battery Present Voltage
})
Method (_BST, 0, NotSerialized)
{
@ -57,7 +57,7 @@ Device (BAT0)
PKG1[1] = B1PR
PKG1[2] = B1RC
PKG1[3] = B1PV
Return(PKG1)
Return (PKG1)
}
Method (_PCL, 0, NotSerialized)
{

View File

@ -39,7 +39,7 @@ Scope (\_SB.PCI0.LPCB)
Name (PVOL, 0x00)
Mutex (ECMT, 0x00)
Name(BFFR, ResourceTemplate()
Name (BFFR, ResourceTemplate()
{
IO(Decode16, 0x0062, 0x0062, 0x00, 0x01)
IO(Decode16, 0x0066, 0x0066, 0x00, 0x01)
@ -47,8 +47,7 @@ Scope (\_SB.PCI0.LPCB)
Method (_CRS, 0, Serialized)
{
Return(BFFR)
Return (BFFR)
}
Method (_STA, 0, NotSerialized)
@ -98,7 +97,7 @@ Scope (\_SB.PCI0.LPCB)
Release (ECMT)
}
}
Return(0) // Return in case Arg0 doesn't exist
Return (0) // Return in case Arg0 doesn't exist
}
// ECWR (Embedded Controller Write Method)

View File

@ -26,7 +26,7 @@ Device (HIDD) // HID Device
// Output:
// Package containing a complete HID Descriptor information.
//
Name(DPKG, Package(4)
Name (DPKG, Package(4)
{
0x11111111,
0x22222222,
@ -35,7 +35,7 @@ Device (HIDD) // HID Device
})
Method (HDDM, 0, Serialized)
{
Return(DPKG)
Return (DPKG)
}
//
// HID Driver Event Method - Called by HID Driver to get the specific
@ -54,9 +54,9 @@ Device (HIDD) // HID Device
// Simple Mode is hardcoded for now. Return Simple Mode HID Index Value.
If (HMDE == 0x00)
{
Return(HIDX)
Return (HIDX)
}
Return(HMDE)
Return (HMDE)
}
//
// HID Driver Mode Method - Called by HID Driver during initialization to get
@ -71,7 +71,7 @@ Device (HIDD) // HID Device
//
Method (HDMM, 0, Serialized)
{
Return(HMDE) // Return Mode of operation.
Return (HMDE) // Return Mode of operation.
}
//
// HID Driver Status Method - called by HID Driver to report platform readiness status.
@ -196,7 +196,7 @@ Device (HIDD) // HID Device
//
Method (BTNC, 0, Serialized) // HID Button Capabilities Method
{
Return(0x1F)
Return (0x1F)
}
//
@ -253,7 +253,7 @@ Device (HIDD) // HID Device
//
Method (HEEC, 0, Serialized) {
// It's possible to return (\HEB2)
Return(0x00)
Return (0x00)
}
//
// HIDD _DSM

View File

@ -7,7 +7,7 @@ Device (LID0)
{
Return (0x0F)
}
Method (_LID,0)
Method (_LID, 0)
{
// 0x00 == Closed
// 0x01 == Open