]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
platform/x86: thinkpad_acpi: Use false to set acpi_send_ev to false
authorHans de Goede <hdegoede@redhat.com>
Mon, 29 Apr 2024 09:34:46 +0000 (11:34 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 29 Apr 2024 09:53:52 +0000 (11:53 +0200)
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
drivers/platform/x86/thinkpad_acpi.c

index bdcdc029ef32a527224af44024284c48249cadf7..1150a5c434a603aba8c4b33e6ea73904347c1cae 100644 (file)
@@ -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;