OSDN Git Service

platform/x86: wmi: Add no_notify_data flag to struct wmi_driver
authorHans de Goede <hdegoede@redhat.com>
Sun, 28 Nov 2021 19:00:29 +0000 (20:00 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 6 Dec 2021 21:33:39 +0000 (22:33 +0100)
commit8c33915d77a565b8b5d44e6368e22b6ea300b7a8
tree2573addfe6b8bf1ae11d85cdb447c127fbc82468
parent9918878676a5f9e99b98679f04b9e6c0f5426b0a
platform/x86: wmi: Add no_notify_data flag to struct wmi_driver

Some WMI implementations do notifies on WMI objects without a _WED method
allow WMI drivers to indicate that _WED should not be called for notifies
on the WMI objects the driver is bound to.

Instead the driver's notify callback will simply be called with a NULL
data argument.

Reported-by: Yauhen Kharuzhy <jekhor@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211128190031.405620-3-hdegoede@redhat.com
drivers/platform/x86/wmi.c
include/linux/wmi.h