瀏覽代碼

alienware-wmi: Update WMAX brightness method limit to 15

This more closely reflects what the hardware can actually support.

Signed-off-by: Mario Limonciello <mario_limonciello@dell.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Mario Limonciello 11 年之前
父節點
當前提交
b998680e9a
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/platform/x86/alienware-wmi.c

+ 1 - 2
drivers/platform/x86/alienware-wmi.c

@@ -350,12 +350,11 @@ static int alienware_zone_init(struct platform_device *dev)
 	char *name;
 	char *name;
 
 
 	if (interface == WMAX) {
 	if (interface == WMAX) {
-		global_led.max_brightness = 100;
 		lighting_control_state = WMAX_RUNNING;
 		lighting_control_state = WMAX_RUNNING;
 	} else if (interface == LEGACY) {
 	} else if (interface == LEGACY) {
-		global_led.max_brightness = 0x0F;
 		lighting_control_state = LEGACY_RUNNING;
 		lighting_control_state = LEGACY_RUNNING;
 	}
 	}
+	global_led.max_brightness = 0x0F;
 	global_brightness = global_led.max_brightness;
 	global_brightness = global_led.max_brightness;
 
 
 	/*
 	/*