| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * wmi.h - ACPI WMI interface |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2015 Andrew Lutomirski |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 11 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 13 | | - * General Public License for more details. |
|---|
| 14 | 6 | */ |
|---|
| 15 | 7 | |
|---|
| 16 | 8 | #ifndef _LINUX_WMI_H |
|---|
| .. | .. |
|---|
| 18 | 10 | |
|---|
| 19 | 11 | #include <linux/device.h> |
|---|
| 20 | 12 | #include <linux/acpi.h> |
|---|
| 13 | +#include <linux/mod_devicetable.h> |
|---|
| 21 | 14 | #include <uapi/linux/wmi.h> |
|---|
| 22 | 15 | |
|---|
| 23 | 16 | struct wmi_device { |
|---|
| .. | .. |
|---|
| 39 | 32 | |
|---|
| 40 | 33 | extern int set_required_buffer_size(struct wmi_device *wdev, u64 length); |
|---|
| 41 | 34 | |
|---|
| 42 | | -struct wmi_device_id { |
|---|
| 43 | | - const char *guid_string; |
|---|
| 44 | | -}; |
|---|
| 45 | | - |
|---|
| 46 | 35 | struct wmi_driver { |
|---|
| 47 | 36 | struct device_driver driver; |
|---|
| 48 | 37 | const struct wmi_device_id *id_table; |
|---|
| 49 | 38 | |
|---|
| 50 | | - int (*probe)(struct wmi_device *wdev); |
|---|
| 39 | + int (*probe)(struct wmi_device *wdev, const void *context); |
|---|
| 51 | 40 | int (*remove)(struct wmi_device *wdev); |
|---|
| 52 | 41 | void (*notify)(struct wmi_device *device, union acpi_object *data); |
|---|
| 53 | 42 | long (*filter_callback)(struct wmi_device *wdev, unsigned int cmd, |
|---|