via-pmu-backlight.c (97eb3f24352ec6632c2127b35d8087d2a809a9b9) | via-pmu-backlight.c (bb7ca747f8d6243b3943c5b133048652020f4a50) |
---|---|
1/* 2 * Backlight code for via-pmu 3 * 4 * Copyright (C) 1998 Paul Mackerras and Fabio Riccardi. 5 * Copyright (C) 2001-2002 Benjamin Herrenschmidt 6 * Copyright (C) 2006 Michael Hanselmann <linux-kernel@hansmi.ch> 7 * 8 */ --- 149 unchanged lines hidden (view full) --- 158 !pmac_has_backlight_type("pmu") && 159 !of_machine_is_compatible("AAPL,PowerBook1998") && 160 !of_machine_is_compatible("PowerBook1,1")) 161 return; 162 163 snprintf(name, sizeof(name), "pmubl"); 164 165 memset(&props, 0, sizeof(struct backlight_properties)); | 1/* 2 * Backlight code for via-pmu 3 * 4 * Copyright (C) 1998 Paul Mackerras and Fabio Riccardi. 5 * Copyright (C) 2001-2002 Benjamin Herrenschmidt 6 * Copyright (C) 2006 Michael Hanselmann <linux-kernel@hansmi.ch> 7 * 8 */ --- 149 unchanged lines hidden (view full) --- 158 !pmac_has_backlight_type("pmu") && 159 !of_machine_is_compatible("AAPL,PowerBook1998") && 160 !of_machine_is_compatible("PowerBook1,1")) 161 return; 162 163 snprintf(name, sizeof(name), "pmubl"); 164 165 memset(&props, 0, sizeof(struct backlight_properties)); |
166 props.type = BACKLIGHT_PLATFORM; |
|
166 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; 167 bd = backlight_device_register(name, NULL, NULL, &pmu_backlight_data, 168 &props); 169 if (IS_ERR(bd)) { 170 printk(KERN_ERR "PMU Backlight registration failed\n"); 171 return; 172 } 173 uses_pmu_bl = 1; --- 21 unchanged lines hidden --- | 167 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; 168 bd = backlight_device_register(name, NULL, NULL, &pmu_backlight_data, 169 &props); 170 if (IS_ERR(bd)) { 171 printk(KERN_ERR "PMU Backlight registration failed\n"); 172 return; 173 } 174 uses_pmu_bl = 1; --- 21 unchanged lines hidden --- |