@@ -294,7 +294,7 @@ out:
}
static bool itpm;
-module_param(itpm, bool, 0444);
+module_param(itpm, bool, S_IRUSR | S_IRGRP | S_IROTH);
MODULE_PARM_DESC(itpm, "Force iTPM workarounds (found on some Lenovo laptops)");
/*
@@ -645,7 +645,7 @@ static void tpm_tis_probe_irq(struct tpm_chip *chip, u32 intmask)
}
static bool interrupts = true;
-module_param(interrupts, bool, 0444);
+module_param(interrupts, bool, S_IRUSR | S_IRGRP | S_IROTH);
MODULE_PARM_DESC(interrupts, "Enable interrupts");
static void tpm_tis_remove(struct tpm_chip *chip)
@@ -921,7 +921,7 @@ static struct pnp_driver tis_pnp_driver = {
#define TIS_HID_USR_IDX sizeof(tpm_pnp_tbl)/sizeof(struct pnp_device_id) -2
module_param_string(hid, tpm_pnp_tbl[TIS_HID_USR_IDX].id,
- sizeof(tpm_pnp_tbl[TIS_HID_USR_IDX].id), 0444);
+ sizeof(tpm_pnp_tbl[TIS_HID_USR_IDX].id), S_IRUSR | S_IRGRP | S_IROTH);
MODULE_PARM_DESC(hid, "Set additional specific HID for this driver to probe");
#ifdef CONFIG_ACPI
@@ -1060,7 +1060,7 @@ static struct platform_driver tis_drv = {
static bool force;
#ifdef CONFIG_X86
-module_param(force, bool, 0444);
+module_param(force, bool, S_IRUSR | S_IRGRP | S_IROTH);
MODULE_PARM_DESC(force, "Force device probe rather than using ACPI entry");
#endif