aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/thinkpad_acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/thinkpad_acpi.c')
-rw-r--r--drivers/misc/thinkpad_acpi.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c
index 322ba25b4798..56a21e6b80a9 100644
--- a/drivers/misc/thinkpad_acpi.c
+++ b/drivers/misc/thinkpad_acpi.c
@@ -3182,6 +3182,12 @@ static int __init brightness_init(struct ibm_init_struct *iibm)
3182 3182
3183 mutex_init(&brightness_mutex); 3183 mutex_init(&brightness_mutex);
3184 3184
3185 if (!brightness_enable) {
3186 dbg_printk(TPACPI_DBG_INIT,
3187 "brightness support disabled by module parameter\n");
3188 return 1;
3189 }
3190
3185 if (!brightness_mode) { 3191 if (!brightness_mode) {
3186 if (thinkpad_id.vendor == PCI_VENDOR_ID_LENOVO) 3192 if (thinkpad_id.vendor == PCI_VENDOR_ID_LENOVO)
3187 brightness_mode = 2; 3193 brightness_mode = 2;
@@ -4803,6 +4809,9 @@ module_param_named(fan_control, fan_control_allowed, bool, 0);
4803static int brightness_mode; 4809static int brightness_mode;
4804module_param_named(brightness_mode, brightness_mode, int, 0); 4810module_param_named(brightness_mode, brightness_mode, int, 0);
4805 4811
4812static unsigned int brightness_enable = 2; /* 2 = auto, 0 = no, 1 = yes */
4813module_param(brightness_enable, uint, 0);
4814
4806static unsigned int hotkey_report_mode; 4815static unsigned int hotkey_report_mode;
4807module_param(hotkey_report_mode, uint, 0); 4816module_param(hotkey_report_mode, uint, 0);
4808 4817