mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Use the new API for acpi_MatchHid(). The difference between ACPI_HANDLE
and device_t isn't caught by the compiler.
This commit is contained in:
parent
b46dfa92b4
commit
7a15653c9c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130447
@ -213,7 +213,7 @@ acpi_asus_probe(device_t dev)
|
||||
|
||||
if (!acpi_disabled("asus") &&
|
||||
acpi_get_type(dev) == ACPI_TYPE_DEVICE &&
|
||||
acpi_MatchHid(dev, "ATK0100")) {
|
||||
acpi_MatchHid(acpi_get_handle(dev), "ATK0100")) {
|
||||
sc = device_get_softc(dev);
|
||||
sc->dev = dev;
|
||||
sc->handle = acpi_get_handle(dev);
|
||||
|
@ -212,13 +212,15 @@ TUNABLE_INT("hw.acpi.toshiba.enable_fn_keys", &enable_fn_keys);
|
||||
static int
|
||||
acpi_toshiba_probe(device_t dev)
|
||||
{
|
||||
ACPI_HANDLE h;
|
||||
int ret = ENXIO;
|
||||
|
||||
h = acpi_get_handle(dev);
|
||||
if (!acpi_disabled("toshiba") &&
|
||||
acpi_get_type(dev) == ACPI_TYPE_DEVICE &&
|
||||
device_get_unit(dev) == 0 &&
|
||||
(acpi_MatchHid(dev, "TOS6200") ||
|
||||
acpi_MatchHid(dev, "TOS6207"))) {
|
||||
(acpi_MatchHid(h, "TOS6200") ||
|
||||
acpi_MatchHid(h, "TOS6207"))) {
|
||||
device_set_desc(dev, "Toshiba HCI Extras");
|
||||
ret = 0;
|
||||
}
|
||||
|
@ -213,7 +213,7 @@ acpi_asus_probe(device_t dev)
|
||||
|
||||
if (!acpi_disabled("asus") &&
|
||||
acpi_get_type(dev) == ACPI_TYPE_DEVICE &&
|
||||
acpi_MatchHid(dev, "ATK0100")) {
|
||||
acpi_MatchHid(acpi_get_handle(dev), "ATK0100")) {
|
||||
sc = device_get_softc(dev);
|
||||
sc->dev = dev;
|
||||
sc->handle = acpi_get_handle(dev);
|
||||
|
@ -212,13 +212,15 @@ TUNABLE_INT("hw.acpi.toshiba.enable_fn_keys", &enable_fn_keys);
|
||||
static int
|
||||
acpi_toshiba_probe(device_t dev)
|
||||
{
|
||||
ACPI_HANDLE h;
|
||||
int ret = ENXIO;
|
||||
|
||||
h = acpi_get_handle(dev);
|
||||
if (!acpi_disabled("toshiba") &&
|
||||
acpi_get_type(dev) == ACPI_TYPE_DEVICE &&
|
||||
device_get_unit(dev) == 0 &&
|
||||
(acpi_MatchHid(dev, "TOS6200") ||
|
||||
acpi_MatchHid(dev, "TOS6207"))) {
|
||||
(acpi_MatchHid(h, "TOS6200") ||
|
||||
acpi_MatchHid(h, "TOS6207"))) {
|
||||
device_set_desc(dev, "Toshiba HCI Extras");
|
||||
ret = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user