platform/x86: wmi: Replace read_takes_no_args with a flags field
authorHans de Goede <hdegoede@redhat.com>
Sun, 28 Nov 2021 19:00:27 +0000 (20:00 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 6 Dec 2021 21:33:22 +0000 (22:33 +0100)
commita90b38c58667142ecff2521481ed44286d46b140
tree5aff4cad39086e64d84068cd635480a89bd6d68f
parent01e16cb67cce68afaeb9c7bed72299036dbb0bc1
platform/x86: wmi: Replace read_takes_no_args with a flags field

Replace the wmi_block.read_takes_no_args bool field with
an unsigned long flags field, used together with test_bit()
and friends.

This is a preparation patch for fixing a driver->notify() vs ->probe()
race, which requires atomic flag handling.

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-1-hdegoede@redhat.com
drivers/platform/x86/wmi.c