aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2009-12-08 20:36:27 -0500
committerLen Brown <len.brown@intel.com>2009-12-09 15:45:30 -0500
commitb09c72259e88cec3d602aef987a3209297f3a9c2 (patch)
treee059d30664b57373882656f32cf08d5a70d9a2d1 /drivers/platform
parentd112ef95d4ec1ee7fe7123e3f21e4aac0d57570c (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.c20
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
8119module_param(experimental, int, 0); 8119module_param(experimental, int, 0444);
8120MODULE_PARM_DESC(experimental, 8120MODULE_PARM_DESC(experimental,
8121 "Enables experimental features when non-zero"); 8121 "Enables experimental features when non-zero");
8122 8122
8123module_param_named(debug, dbg_level, uint, 0); 8123module_param_named(debug, dbg_level, uint, 0);
8124MODULE_PARM_DESC(debug, "Sets debug level bit-mask"); 8124MODULE_PARM_DESC(debug, "Sets debug level bit-mask");
8125 8125
8126module_param(force_load, bool, 0); 8126module_param(force_load, bool, 0444);
8127MODULE_PARM_DESC(force_load, 8127MODULE_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
8131module_param_named(fan_control, fan_control_allowed, bool, 0); 8131module_param_named(fan_control, fan_control_allowed, bool, 0444);
8132MODULE_PARM_DESC(fan_control, 8132MODULE_PARM_DESC(fan_control,
8133 "Enables setting fan parameters features when true"); 8133 "Enables setting fan parameters features when true");
8134 8134
8135module_param_named(brightness_mode, brightness_mode, uint, 0); 8135module_param_named(brightness_mode, brightness_mode, uint, 0444);
8136MODULE_PARM_DESC(brightness_mode, 8136MODULE_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
8140module_param(brightness_enable, uint, 0); 8140module_param(brightness_enable, uint, 0444);
8141MODULE_PARM_DESC(brightness_enable, 8141MODULE_PARM_DESC(brightness_enable,
8142 "Enables backlight control when 1, disables when 0"); 8142 "Enables backlight control when 1, disables when 0");
8143 8143
8144module_param(hotkey_report_mode, uint, 0); 8144module_param(hotkey_report_mode, uint, 0444);
8145MODULE_PARM_DESC(hotkey_report_mode, 8145MODULE_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);
8164TPACPI_PARAM(fan); 8164TPACPI_PARAM(fan);
8165 8165
8166#ifdef CONFIG_THINKPAD_ACPI_DEBUGFACILITIES 8166#ifdef CONFIG_THINKPAD_ACPI_DEBUGFACILITIES
8167module_param(dbg_wlswemul, uint, 0); 8167module_param(dbg_wlswemul, uint, 0444);
8168MODULE_PARM_DESC(dbg_wlswemul, "Enables WLSW emulation"); 8168MODULE_PARM_DESC(dbg_wlswemul, "Enables WLSW emulation");
8169module_param_named(wlsw_state, tpacpi_wlsw_emulstate, bool, 0); 8169module_param_named(wlsw_state, tpacpi_wlsw_emulstate, bool, 0);
8170MODULE_PARM_DESC(wlsw_state, 8170MODULE_PARM_DESC(wlsw_state,
8171 "Initial state of the emulated WLSW switch"); 8171 "Initial state of the emulated WLSW switch");
8172 8172
8173module_param(dbg_bluetoothemul, uint, 0); 8173module_param(dbg_bluetoothemul, uint, 0444);
8174MODULE_PARM_DESC(dbg_bluetoothemul, "Enables bluetooth switch emulation"); 8174MODULE_PARM_DESC(dbg_bluetoothemul, "Enables bluetooth switch emulation");
8175module_param_named(bluetooth_state, tpacpi_bluetooth_emulstate, bool, 0); 8175module_param_named(bluetooth_state, tpacpi_bluetooth_emulstate, bool, 0);
8176MODULE_PARM_DESC(bluetooth_state, 8176MODULE_PARM_DESC(bluetooth_state,
8177 "Initial state of the emulated bluetooth switch"); 8177 "Initial state of the emulated bluetooth switch");
8178 8178
8179module_param(dbg_wwanemul, uint, 0); 8179module_param(dbg_wwanemul, uint, 0444);
8180MODULE_PARM_DESC(dbg_wwanemul, "Enables WWAN switch emulation"); 8180MODULE_PARM_DESC(dbg_wwanemul, "Enables WWAN switch emulation");
8181module_param_named(wwan_state, tpacpi_wwan_emulstate, bool, 0); 8181module_param_named(wwan_state, tpacpi_wwan_emulstate, bool, 0);
8182MODULE_PARM_DESC(wwan_state, 8182MODULE_PARM_DESC(wwan_state,
8183 "Initial state of the emulated WWAN switch"); 8183 "Initial state of the emulated WWAN switch");
8184 8184
8185module_param(dbg_uwbemul, uint, 0); 8185module_param(dbg_uwbemul, uint, 0444);
8186MODULE_PARM_DESC(dbg_uwbemul, "Enables UWB switch emulation"); 8186MODULE_PARM_DESC(dbg_uwbemul, "Enables UWB switch emulation");
8187module_param_named(uwb_state, tpacpi_uwb_emulstate, bool, 0); 8187module_param_named(uwb_state, tpacpi_uwb_emulstate, bool, 0);
8188MODULE_PARM_DESC(uwb_state, 8188MODULE_PARM_DESC(uwb_state,