asus-laptop.c (97eb3f24352ec6632c2127b35d8087d2a809a9b9) | asus-laptop.c (bb7ca747f8d6243b3943c5b133048652020f4a50) |
---|---|
1/* 2 * asus-laptop.c - Asus Laptop Support 3 * 4 * 5 * Copyright (C) 2002-2005 Julien Lerouge, 2003-2006 Karol Kozimor 6 * Copyright (C) 2006-2007 Corentin Chary 7 * 8 * This program is free software; you can redistribute it and/or modify --- 653 unchanged lines hidden (view full) --- 662 663 if (acpi_check_handle(asus->handle, METHOD_BRIGHTNESS_GET, NULL) || 664 acpi_check_handle(asus->handle, METHOD_BRIGHTNESS_SET, NULL) || 665 !lcd_switch_handle) 666 return 0; 667 668 memset(&props, 0, sizeof(struct backlight_properties)); 669 props.max_brightness = 15; | 1/* 2 * asus-laptop.c - Asus Laptop Support 3 * 4 * 5 * Copyright (C) 2002-2005 Julien Lerouge, 2003-2006 Karol Kozimor 6 * Copyright (C) 2006-2007 Corentin Chary 7 * 8 * This program is free software; you can redistribute it and/or modify --- 653 unchanged lines hidden (view full) --- 662 663 if (acpi_check_handle(asus->handle, METHOD_BRIGHTNESS_GET, NULL) || 664 acpi_check_handle(asus->handle, METHOD_BRIGHTNESS_SET, NULL) || 665 !lcd_switch_handle) 666 return 0; 667 668 memset(&props, 0, sizeof(struct backlight_properties)); 669 props.max_brightness = 15; |
670 props.type = BACKLIGHT_PLATFORM; |
|
670 671 bd = backlight_device_register(ASUS_LAPTOP_FILE, 672 &asus->platform_device->dev, asus, 673 &asusbl_ops, &props); 674 if (IS_ERR(bd)) { 675 pr_err("Could not register asus backlight device\n"); 676 asus->backlight_device = NULL; 677 return PTR_ERR(bd); --- 1015 unchanged lines hidden --- | 671 672 bd = backlight_device_register(ASUS_LAPTOP_FILE, 673 &asus->platform_device->dev, asus, 674 &asusbl_ops, &props); 675 if (IS_ERR(bd)) { 676 pr_err("Could not register asus backlight device\n"); 677 asus->backlight_device = NULL; 678 return PTR_ERR(bd); --- 1015 unchanged lines hidden --- |