treewide: Drop ACPI_VIDEO_DEVICE macro
It was always defined to the same value, and only used twice. Change-Id: I2736eb7ea2cf15475f7bb99d7d12450730eb8be0 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40864 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
fbcfefe5f3
commit
822148c5e7
|
@ -141,13 +141,12 @@ Device(EC)
|
|||
BRIGHTNESS_DOWN()
|
||||
}
|
||||
|
||||
#ifdef ACPI_VIDEO_DEVICE
|
||||
/* Next display GPE */
|
||||
Method(_Q16, 0, NotSerialized)
|
||||
{
|
||||
Notify (ACPI_VIDEO_DEVICE, 0x82)
|
||||
Notify (\_SB.PCI0.GFX0, 0x82)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* AC status change: present */
|
||||
Method(_Q26, 0, NotSerialized)
|
||||
{
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 22
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -117,7 +117,7 @@ Device (EC0)
|
|||
|
||||
/* Video output switch hotkey */
|
||||
Method (_Q16, 0, NotSerialized) {
|
||||
Notify (ACPI_VIDEO_DEVICE, 0x82)
|
||||
Notify (\_SB.PCI0.GFX0, 0x82)
|
||||
^HKEY.MHKQ (0x1007)
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 23
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
#define THINKPAD_EC_GPE 17
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 28
|
||||
#define BRIGHTNESS_UP \BRTU
|
||||
#define BRIGHTNESS_DOWN \BRTD
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
DefinitionBlock(
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 22
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
#define EC_LENOVO_H8_ALT_FN_F2F3_LAYOUT 1
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
DefinitionBlock(
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 17
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
#define EC_LENOVO_H8_ME_WORKAROUND 1
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define THINKPAD_EC_GPE 28
|
||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
|
||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
|
||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
DefinitionBlock(
|
||||
|
|
|
@ -192,10 +192,6 @@ func (b bd82x6x) Scan(ctx Context, addr PCIDevData) {
|
|||
DSDTDefine{
|
||||
Key: "BRIGHTNESS_DOWN",
|
||||
Value: "\\_SB.PCI0.GFX0.DECB",
|
||||
},
|
||||
DSDTDefine{
|
||||
Key: "ACPI_VIDEO_DEVICE",
|
||||
Value: "\\_SB.PCI0.GFX0",
|
||||
})
|
||||
|
||||
/* SPI init */
|
||||
|
|
Loading…
Reference in New Issue