diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2009-12-08 20:36:27 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-12-09 15:45:30 -0500 |
commit | b09c72259e88cec3d602aef987a3209297f3a9c2 (patch) | |
tree | e059d30664b57373882656f32cf08d5a70d9a2d1 /drivers/platform | |
parent | d112ef95d4ec1ee7fe7123e3f21e4aac0d57570c (diff) |
thinkpad-acpi: expose module parameters
Export the normal (non-command) module paramenters as mode 0444, so
that they will show up in sysfs.
These parameters must not be changed at runtime as a rule, with very
few exceptions.
Reported-by: Ferenc Wagner <wferi@niif.hu>
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index dd8bd072c79a..4b96a961b7e0 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
@@ -8116,32 +8116,32 @@ static int __init set_ibm_param(const char *val, struct kernel_param *kp) | |||
8116 | return -EINVAL; | 8116 | return -EINVAL; |
8117 | } | 8117 | } |
8118 | 8118 | ||
8119 | module_param(experimental, int, 0); | 8119 | module_param(experimental, int, 0444); |
8120 | MODULE_PARM_DESC(experimental, | 8120 | MODULE_PARM_DESC(experimental, |
8121 | "Enables experimental features when non-zero"); | 8121 | "Enables experimental features when non-zero"); |
8122 | 8122 | ||
8123 | module_param_named(debug, dbg_level, uint, 0); | 8123 | module_param_named(debug, dbg_level, uint, 0); |
8124 | MODULE_PARM_DESC(debug, "Sets debug level bit-mask"); | 8124 | MODULE_PARM_DESC(debug, "Sets debug level bit-mask"); |
8125 | 8125 | ||
8126 | module_param(force_load, bool, 0); | 8126 | module_param(force_load, bool, 0444); |
8127 | MODULE_PARM_DESC(force_load, | 8127 | MODULE_PARM_DESC(force_load, |
8128 | "Attempts to load the driver even on a " | 8128 | "Attempts to load the driver even on a " |
8129 | "mis-identified ThinkPad when true"); | 8129 | "mis-identified ThinkPad when true"); |
8130 | 8130 | ||
8131 | module_param_named(fan_control, fan_control_allowed, bool, 0); | 8131 | module_param_named(fan_control, fan_control_allowed, bool, 0444); |
8132 | MODULE_PARM_DESC(fan_control, | 8132 | MODULE_PARM_DESC(fan_control, |
8133 | "Enables setting fan parameters features when true"); | 8133 | "Enables setting fan parameters features when true"); |
8134 | 8134 | ||
8135 | module_param_named(brightness_mode, brightness_mode, uint, 0); | 8135 | module_param_named(brightness_mode, brightness_mode, uint, 0444); |
8136 | MODULE_PARM_DESC(brightness_mode, | 8136 | MODULE_PARM_DESC(brightness_mode, |
8137 | "Selects brightness control strategy: " | 8137 | "Selects brightness control strategy: " |
8138 | "0=auto, 1=EC, 2=UCMS, 3=EC+NVRAM"); | 8138 | "0=auto, 1=EC, 2=UCMS, 3=EC+NVRAM"); |
8139 | 8139 | ||
8140 | module_param(brightness_enable, uint, 0); | 8140 | module_param(brightness_enable, uint, 0444); |
8141 | MODULE_PARM_DESC(brightness_enable, | 8141 | MODULE_PARM_DESC(brightness_enable, |
8142 | "Enables backlight control when 1, disables when 0"); | 8142 | "Enables backlight control when 1, disables when 0"); |
8143 | 8143 | ||
8144 | module_param(hotkey_report_mode, uint, 0); | 8144 | module_param(hotkey_report_mode, uint, 0444); |
8145 | MODULE_PARM_DESC(hotkey_report_mode, | 8145 | MODULE_PARM_DESC(hotkey_report_mode, |
8146 | "used for backwards compatibility with userspace, " | 8146 | "used for backwards compatibility with userspace, " |
8147 | "see documentation"); | 8147 | "see documentation"); |
@@ -8164,25 +8164,25 @@ TPACPI_PARAM(volume); | |||
8164 | TPACPI_PARAM(fan); | 8164 | TPACPI_PARAM(fan); |
8165 | 8165 | ||
8166 | #ifdef CONFIG_THINKPAD_ACPI_DEBUGFACILITIES | 8166 | #ifdef CONFIG_THINKPAD_ACPI_DEBUGFACILITIES |
8167 | module_param(dbg_wlswemul, uint, 0); | 8167 | module_param(dbg_wlswemul, uint, 0444); |
8168 | MODULE_PARM_DESC(dbg_wlswemul, "Enables WLSW emulation"); | 8168 | MODULE_PARM_DESC(dbg_wlswemul, "Enables WLSW emulation"); |
8169 | module_param_named(wlsw_state, tpacpi_wlsw_emulstate, bool, 0); | 8169 | module_param_named(wlsw_state, tpacpi_wlsw_emulstate, bool, 0); |
8170 | MODULE_PARM_DESC(wlsw_state, | 8170 | MODULE_PARM_DESC(wlsw_state, |
8171 | "Initial state of the emulated WLSW switch"); | 8171 | "Initial state of the emulated WLSW switch"); |
8172 | 8172 | ||
8173 | module_param(dbg_bluetoothemul, uint, 0); | 8173 | module_param(dbg_bluetoothemul, uint, 0444); |
8174 | MODULE_PARM_DESC(dbg_bluetoothemul, "Enables bluetooth switch emulation"); | 8174 | MODULE_PARM_DESC(dbg_bluetoothemul, "Enables bluetooth switch emulation"); |
8175 | module_param_named(bluetooth_state, tpacpi_bluetooth_emulstate, bool, 0); | 8175 | module_param_named(bluetooth_state, tpacpi_bluetooth_emulstate, bool, 0); |
8176 | MODULE_PARM_DESC(bluetooth_state, | 8176 | MODULE_PARM_DESC(bluetooth_state, |
8177 | "Initial state of the emulated bluetooth switch"); | 8177 | "Initial state of the emulated bluetooth switch"); |
8178 | 8178 | ||
8179 | module_param(dbg_wwanemul, uint, 0); | 8179 | module_param(dbg_wwanemul, uint, 0444); |
8180 | MODULE_PARM_DESC(dbg_wwanemul, "Enables WWAN switch emulation"); | 8180 | MODULE_PARM_DESC(dbg_wwanemul, "Enables WWAN switch emulation"); |
8181 | module_param_named(wwan_state, tpacpi_wwan_emulstate, bool, 0); | 8181 | module_param_named(wwan_state, tpacpi_wwan_emulstate, bool, 0); |
8182 | MODULE_PARM_DESC(wwan_state, | 8182 | MODULE_PARM_DESC(wwan_state, |
8183 | "Initial state of the emulated WWAN switch"); | 8183 | "Initial state of the emulated WWAN switch"); |
8184 | 8184 | ||
8185 | module_param(dbg_uwbemul, uint, 0); | 8185 | module_param(dbg_uwbemul, uint, 0444); |
8186 | MODULE_PARM_DESC(dbg_uwbemul, "Enables UWB switch emulation"); | 8186 | MODULE_PARM_DESC(dbg_uwbemul, "Enables UWB switch emulation"); |
8187 | module_param_named(uwb_state, tpacpi_uwb_emulstate, bool, 0); | 8187 | module_param_named(uwb_state, tpacpi_uwb_emulstate, bool, 0); |
8188 | MODULE_PARM_DESC(uwb_state, | 8188 | MODULE_PARM_DESC(uwb_state, |