Skip to content

Commit

Permalink
msi-laptop: fingers off backlight if video.ko is serving this functio…
Browse files Browse the repository at this point in the history
…nality

Signed-off-by: Thomas Renninger <trenn@suse.de>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Thomas Renninger authored and Len Brown committed Nov 8, 2008
1 parent 7d5c89a commit a598c82
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions 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 a598c82

Please sign in to comment.