linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ACPI: EC: fix error "do not initialise statics to false"
@ 2021-11-03  5:51 wangzhitong
  2021-11-03 18:18 ` Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: wangzhitong @ 2021-11-03  5:51 UTC (permalink / raw)
  To: rjw, lenb, linux-acpi, linux-kernel; +Cc: wangzhitong

this patch fixes below Errors reported by checkpatch
ERROR: do not initialise statics to false
+static bool ec_freeze_events __read_mostly = false;
ERROR: do not initialise statics to false
+static bool boot_ec_is_ecdt = false;

Signed-off-by: wangzhitong <wangzhitong@uniontech.com>
---
 drivers/acpi/ec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index 04ce2b96c3da..1255649a4da9 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -133,7 +133,7 @@ static unsigned int ec_storm_threshold  __read_mostly = 8;
 module_param(ec_storm_threshold, uint, 0644);
 MODULE_PARM_DESC(ec_storm_threshold, "Maxim false GPE numbers not considered as GPE storm");
 
-static bool ec_freeze_events __read_mostly = false;
+static bool ec_freeze_events __read_mostly;
 module_param(ec_freeze_events, bool, 0644);
 MODULE_PARM_DESC(ec_freeze_events, "Disabling event handling during suspend/resume");
 
@@ -177,7 +177,7 @@ struct acpi_ec *first_ec;
 EXPORT_SYMBOL(first_ec);
 
 static struct acpi_ec *boot_ec;
-static bool boot_ec_is_ecdt = false;
+static bool boot_ec_is_ecdt;
 static struct workqueue_struct *ec_wq;
 static struct workqueue_struct *ec_query_wq;
 
-- 
2.20.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-04 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03  5:51 [PATCH] ACPI: EC: fix error "do not initialise statics to false" wangzhitong
2021-11-03 18:18 ` Rafael J. Wysocki
     [not found]   ` <tencent_5EE3079906D3D5211516C198@qq.com>
2021-11-04 11:29     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).