diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-06-16 10:28:11 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-06-18 19:12:41 -0400 |
commit | 234b7cf88dd42eab08c99afa455669f035e8d861 (patch) | |
tree | 0fd8567ffb08c9660486c43342032b1aca03daa4 | |
parent | b33c6ce5f2987184dcc444d05d0f5a7227ce431e (diff) |
toshiba-acpi: Port to new backlight interface selection API
Port the backlight selection logic to the new backlight interface
selection API.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Azael Avalos <coproscefalo@gmail.com>
Acked-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/platform/x86/toshiba_acpi.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 9956b9902bb4..59bf27ed72d6 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c | |||
@@ -2640,14 +2640,11 @@ static int toshiba_acpi_setup_backlight(struct toshiba_acpi_dev *dev) | |||
2640 | */ | 2640 | */ |
2641 | if (dev->tr_backlight_supported || | 2641 | if (dev->tr_backlight_supported || |
2642 | dmi_check_system(toshiba_vendor_backlight_dmi)) | 2642 | dmi_check_system(toshiba_vendor_backlight_dmi)) |
2643 | acpi_video_dmi_promote_vendor(); | 2643 | acpi_video_set_dmi_backlight_type(acpi_backlight_vendor); |
2644 | 2644 | ||
2645 | if (acpi_video_backlight_support()) | 2645 | if (acpi_video_get_backlight_type() != acpi_backlight_vendor) |
2646 | return 0; | 2646 | return 0; |
2647 | 2647 | ||
2648 | /* acpi-video may have loaded before we called dmi_promote_vendor() */ | ||
2649 | acpi_video_unregister_backlight(); | ||
2650 | |||
2651 | memset(&props, 0, sizeof(props)); | 2648 | memset(&props, 0, sizeof(props)); |
2652 | props.type = BACKLIGHT_PLATFORM; | 2649 | props.type = BACKLIGHT_PLATFORM; |
2653 | props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1; | 2650 | props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1; |