msi-laptop.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) msi-laptop.c (bb7ca747f8d6243b3943c5b133048652020f4a50)
1/*-*-linux-c-*-*/
2
3/*
4 Copyright (C) 2006 Lennart Poettering <mzxreary (at) 0pointer (dot) de>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or

--- 790 unchanged lines hidden (view full) ---

799 /* Register backlight stuff */
800
801 if (acpi_video_backlight_support()) {
802 printk(KERN_INFO "MSI: Brightness ignored, must be controlled "
803 "by ACPI video driver\n");
804 } else {
805 struct backlight_properties props;
806 memset(&props, 0, sizeof(struct backlight_properties));
1/*-*-linux-c-*-*/
2
3/*
4 Copyright (C) 2006 Lennart Poettering <mzxreary (at) 0pointer (dot) de>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or

--- 790 unchanged lines hidden (view full) ---

799 /* Register backlight stuff */
800
801 if (acpi_video_backlight_support()) {
802 printk(KERN_INFO "MSI: Brightness ignored, must be controlled "
803 "by ACPI video driver\n");
804 } else {
805 struct backlight_properties props;
806 memset(&props, 0, sizeof(struct backlight_properties));
807 props.type = BACKLIGHT_PLATFORM;
807 props.max_brightness = MSI_LCD_LEVEL_MAX - 1;
808 msibl_device = backlight_device_register("msi-laptop-bl", NULL,
809 NULL, &msibl_ops,
810 &props);
811 if (IS_ERR(msibl_device))
812 return PTR_ERR(msibl_device);
813 }
814

--- 107 unchanged lines hidden ---
808 props.max_brightness = MSI_LCD_LEVEL_MAX - 1;
809 msibl_device = backlight_device_register("msi-laptop-bl", NULL,
810 NULL, &msibl_ops,
811 &props);
812 if (IS_ERR(msibl_device))
813 return PTR_ERR(msibl_device);
814 }
815

--- 107 unchanged lines hidden ---