Lines Matching +full:num +full:- +full:ids
1 // SPDX-License-Identifier: GPL-2.0-only
3 * xen-acpi-pad.c - Xen pad interface
16 #include <xen/xen-ops.h>
48 * return -1 on failure
54 int num = -1; in acpi_pad_pur() local
57 return num; in acpi_pad_pur()
60 return num; in acpi_pad_pur()
64 if (package->type == ACPI_TYPE_PACKAGE && in acpi_pad_pur()
65 package->package.count == 2 && in acpi_pad_pur()
66 package->package.elements[0].integer.value == 1) /* rev 1 */ in acpi_pad_pur()
67 num = package->package.elements[1].integer.value; in acpi_pad_pur()
70 return num; in acpi_pad_pur()
117 status = acpi_install_notify_handler(device->handle, in acpi_pad_add()
120 return -ENODEV; in acpi_pad_add()
131 acpi_remove_notify_handler(device->handle, in acpi_pad_remove()
143 .ids = pad_device_ids,
154 return -ENODEV; in xen_acpi_pad_init()
158 return -ENODEV; in xen_acpi_pad_init()