Skip to contentSkip to conversation

platform/x86: thinkpad_acpi: Use false to set acpi_send_ev to false

PATCH In review Hans de Goede 2 participants 3 messages Apr 29, 2024 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/platform/x86/thinkpad_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/thinkpad_acpi.c +1 -1
index 7e2288009063..e2e6c4d3dff7 100644
@@ -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;
Signature · 1 line
2.44.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Hans de Goede

acpi_send_ev is a bool and everywhere else true/false is used to set it. Replace the one instance using 0 with false.

---
 drivers/platform/x86/thinkpad_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/thinkpad_acpi.c +0 -0
index 7e2288009063..e2e6c4d3dff7 100644

drivers/platform/x86/thinkpad_acpi.c static void hotkey_notify(struct ibm_struct *ibm, u32 event) · line 3918

Quoted 8 lines
drivers/platform/x86/thinkpad_acpi.c +1 -1
@@ -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;
Signature · 1 line
 i.
#2 lore raw
In reply to Hans de Goede

Hi,

Quoted 5 lines · Hans de Goede

acpi_send_ev is a bool and everywhere else true/false is used to set it. Replace the one instance using 0 with false.

I've added this to my review-hans (soon to be for-next) branch now.

Regards,

Hans

Quoted 17 lines
---
 drivers/platform/x86/thinkpad_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/thinkpad_acpi.c +1 -1
index 7e2288009063..e2e6c4d3dff7 100644
@@ -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;