fujitsu-laptop.c (97eb3f24352ec6632c2127b35d8087d2a809a9b9) | fujitsu-laptop.c (bb7ca747f8d6243b3943c5b133048652020f4a50) |
---|---|
1/*-*-linux-c-*-*/ 2 3/* 4 Copyright (C) 2007,2008 Jonathan Woithe <jwoithe@physics.adelaide.edu.au> 5 Copyright (C) 2008 Peter Gruber <nokos@gmx.net> 6 Copyright (C) 2008 Tony Vroon <tony@linx.net> 7 Based on earlier work: 8 Copyright (C) 2003 Shane Spencer <shane@bogomip.com> --- 1114 unchanged lines hidden (view full) --- 1123 1124 /* Register backlight stuff */ 1125 1126 if (!acpi_video_backlight_support()) { 1127 struct backlight_properties props; 1128 1129 memset(&props, 0, sizeof(struct backlight_properties)); 1130 max_brightness = fujitsu->max_brightness; | 1/*-*-linux-c-*-*/ 2 3/* 4 Copyright (C) 2007,2008 Jonathan Woithe <jwoithe@physics.adelaide.edu.au> 5 Copyright (C) 2008 Peter Gruber <nokos@gmx.net> 6 Copyright (C) 2008 Tony Vroon <tony@linx.net> 7 Based on earlier work: 8 Copyright (C) 2003 Shane Spencer <shane@bogomip.com> --- 1114 unchanged lines hidden (view full) --- 1123 1124 /* Register backlight stuff */ 1125 1126 if (!acpi_video_backlight_support()) { 1127 struct backlight_properties props; 1128 1129 memset(&props, 0, sizeof(struct backlight_properties)); 1130 max_brightness = fujitsu->max_brightness; |
1131 props.type = BACKLIGHT_PLATFORM; |
|
1131 props.max_brightness = max_brightness - 1; 1132 fujitsu->bl_device = backlight_device_register("fujitsu-laptop", 1133 NULL, NULL, 1134 &fujitsubl_ops, 1135 &props); 1136 if (IS_ERR(fujitsu->bl_device)) { 1137 ret = PTR_ERR(fujitsu->bl_device); 1138 fujitsu->bl_device = NULL; --- 112 unchanged lines hidden --- | 1132 props.max_brightness = max_brightness - 1; 1133 fujitsu->bl_device = backlight_device_register("fujitsu-laptop", 1134 NULL, NULL, 1135 &fujitsubl_ops, 1136 &props); 1137 if (IS_ERR(fujitsu->bl_device)) { 1138 ret = PTR_ERR(fujitsu->bl_device); 1139 fujitsu->bl_device = NULL; --- 112 unchanged lines hidden --- |