ec/roda/it8518/acpi: Remove unnecessary assignments
Simplify some operations to get rid of unnecessary assignments. Change-Id: I02c93d42ce1de693d5d58fd9a29ccd5bff0f5978 Signed-off-by: Felix Singer <felix.singer@secunet.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56609 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
afa6c41a80
commit
b8c2fcca73
|
@ -46,8 +46,7 @@ Device (BAT0)
|
||||||
|
|
||||||
Local0 = 0x0f
|
Local0 = 0x0f
|
||||||
|
|
||||||
Local1 = ECPS
|
Local1 = ECPS & 0x02
|
||||||
Local1 &= 0x02
|
|
||||||
If (Local1 == 0x02)
|
If (Local1 == 0x02)
|
||||||
{
|
{
|
||||||
Local0 = 0x1f
|
Local0 = 0x1f
|
||||||
|
@ -75,8 +74,7 @@ Device (BAT0)
|
||||||
{
|
{
|
||||||
Printf ("-----> BAT0: _BST")
|
Printf ("-----> BAT0: _BST")
|
||||||
|
|
||||||
Local0 = B0ST
|
Local0 = B0ST & 0x40
|
||||||
Local0 &= 0x40
|
|
||||||
If (Local0 == 0x40)
|
If (Local0 == 0x40)
|
||||||
{
|
{
|
||||||
If (PWRS == 1)
|
If (PWRS == 1)
|
||||||
|
|
|
@ -132,8 +132,7 @@ Device (EC0)
|
||||||
{
|
{
|
||||||
Printf ("-----> EC: _Q43")
|
Printf ("-----> EC: _Q43")
|
||||||
|
|
||||||
Local0 = BRIG
|
Local0 = BRIG + 1
|
||||||
Local0 += 1
|
|
||||||
If (Local0 > 0xaa) {
|
If (Local0 > 0xaa) {
|
||||||
Local0 = 0xaa
|
Local0 = 0xaa
|
||||||
}
|
}
|
||||||
|
@ -148,8 +147,7 @@ Device (EC0)
|
||||||
{
|
{
|
||||||
Printf ("-----> EC: _Q44")
|
Printf ("-----> EC: _Q44")
|
||||||
|
|
||||||
Local0 = BRIG
|
Local0 = BRIG - 1
|
||||||
Local0 -= 1
|
|
||||||
If (Local0 < 0xa0)
|
If (Local0 < 0xa0)
|
||||||
{
|
{
|
||||||
Local0 = 0xa0
|
Local0 = 0xa0
|
||||||
|
|
Loading…
Reference in New Issue