summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2024-04-29 12:34:46 +0300
committerHans de Goede <hdegoede@redhat.com>2024-04-29 12:53:52 +0300
commit44bbcc277b97cdb82cbbbc9df6dbbd0a66f76e21 (patch)
tree03cbe2b0a26942a7960d31ad41c53a3f8209b6ec /drivers/platform
parentfd1e3344d13f1eedb862804dd1d2d5e184cf8eae (diff)
downloadlinux-44bbcc277b97cdb82cbbbc9df6dbbd0a66f76e21.tar.xz
platform/x86: thinkpad_acpi: Use false to set acpi_send_ev to false
acpi_send_ev is a bool and everywhere else true/false is used to set it. Replace the one instance using 0 with false. Suggested-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20240429093446.130322-1-hdegoede@redhat.com
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/thinkpad_acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index bdcdc029ef32..1150a5c434a6 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -3912,7 +3912,7 @@ static void hotkey_notify(struct ibm_struct *ibm, u32 event)
if (tp_features.hotkey_wlsw &&
hkey == TP_HKEY_EV_RFKILL_CHANGED) {
tpacpi_send_radiosw_update();
- send_acpi_ev = 0;
+ send_acpi_ev = false;
known_ev = true;
}
break;