diff options
author | Shailendra Verma <shailendra.capricorn@gmail.com> | 2015-05-25 15:24:57 -0400 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2015-09-03 16:02:25 -0400 |
commit | fedb25ea903d3520b6cff00c41740a892cf6bc0e (patch) | |
tree | 98b4ddd5e61ca9fa8254e0736db1ad683e6f7e00 | |
parent | 881c585ef79addb2440a7f8d59bda5640d0ff623 (diff) |
char:ipmi - Change 1 to true for bool type variables during initialization.
Signed-off-by: Shailendra Verma <shailendra.capricorn@gmail.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 8 | ||||
-rw-r--r-- | drivers/char/ipmi/ipmi_ssif.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 6443e762b426..b1fdbf78da9b 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -1279,14 +1279,14 @@ static int smi_num; /* Used to sequence the SMIs */ | |||
1279 | #define DEFAULT_REGSIZE 1 | 1279 | #define DEFAULT_REGSIZE 1 |
1280 | 1280 | ||
1281 | #ifdef CONFIG_ACPI | 1281 | #ifdef CONFIG_ACPI |
1282 | static bool si_tryacpi = 1; | 1282 | static bool si_tryacpi = true; |
1283 | #endif | 1283 | #endif |
1284 | #ifdef CONFIG_DMI | 1284 | #ifdef CONFIG_DMI |
1285 | static bool si_trydmi = 1; | 1285 | static bool si_trydmi = true; |
1286 | #endif | 1286 | #endif |
1287 | static bool si_tryplatform = 1; | 1287 | static bool si_tryplatform = true; |
1288 | #ifdef CONFIG_PCI | 1288 | #ifdef CONFIG_PCI |
1289 | static bool si_trypci = 1; | 1289 | static bool si_trypci = true; |
1290 | #endif | 1290 | #endif |
1291 | static bool si_trydefaults = IS_ENABLED(CONFIG_IPMI_SI_PROBE_DEFAULTS); | 1291 | static bool si_trydefaults = IS_ENABLED(CONFIG_IPMI_SI_PROBE_DEFAULTS); |
1292 | static char *si_type[SI_MAX_PARMS]; | 1292 | static char *si_type[SI_MAX_PARMS]; |
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c index 207689c444a8..428a5faef74d 100644 --- a/drivers/char/ipmi/ipmi_ssif.c +++ b/drivers/char/ipmi/ipmi_ssif.c | |||
@@ -1154,11 +1154,11 @@ static int use_thread; | |||
1154 | module_param(use_thread, int, 0); | 1154 | module_param(use_thread, int, 0); |
1155 | MODULE_PARM_DESC(use_thread, "Use the thread interface."); | 1155 | MODULE_PARM_DESC(use_thread, "Use the thread interface."); |
1156 | 1156 | ||
1157 | static bool ssif_tryacpi = 1; | 1157 | static bool ssif_tryacpi = true; |
1158 | module_param_named(tryacpi, ssif_tryacpi, bool, 0); | 1158 | module_param_named(tryacpi, ssif_tryacpi, bool, 0); |
1159 | MODULE_PARM_DESC(tryacpi, "Setting this to zero will disable the default scan of the interfaces identified via ACPI"); | 1159 | MODULE_PARM_DESC(tryacpi, "Setting this to zero will disable the default scan of the interfaces identified via ACPI"); |
1160 | 1160 | ||
1161 | static bool ssif_trydmi = 1; | 1161 | static bool ssif_trydmi = true; |
1162 | module_param_named(trydmi, ssif_trydmi, bool, 0); | 1162 | module_param_named(trydmi, ssif_trydmi, bool, 0); |
1163 | MODULE_PARM_DESC(trydmi, "Setting this to zero will disable the default scan of the interfaces identified via DMI (SMBIOS)"); | 1163 | MODULE_PARM_DESC(trydmi, "Setting this to zero will disable the default scan of the interfaces identified via DMI (SMBIOS)"); |
1164 | 1164 | ||