Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118818
b: refs/heads/master
c: a598c82
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Renninger authored and Len Brown committed Nov 8, 2008
1 parent 834f1ab commit 7545a27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d5c89a615c5dae039094a3cf4a56fe6aab81765
refs/heads/master: a598c82f39892069a8f6693459b1179fd9ef30e1
16 changes: 10 additions & 6 deletions trunk/drivers/misc/msi-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,16 @@ static int __init msi_init(void)

/* Register backlight stuff */

msibl_device = backlight_device_register("msi-laptop-bl", NULL, NULL,
&msibl_ops);
if (IS_ERR(msibl_device))
return PTR_ERR(msibl_device);

msibl_device->props.max_brightness = MSI_LCD_LEVEL_MAX-1;
if (acpi_video_backlight_support()) {
printk(KERN_INFO "MSI: Brightness ignored, must be controlled "
"by ACPI video driver\n");
} else {
msibl_device = backlight_device_register("msi-laptop-bl", NULL,
NULL, &msibl_ops);
if (IS_ERR(msibl_device))
return PTR_ERR(msibl_device);
msibl_device->props.max_brightness = MSI_LCD_LEVEL_MAX-1;
}

ret = platform_driver_register(&msipf_driver);
if (ret)
Expand Down

0 comments on commit 7545a27

Please sign in to comment.