diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-06-16 10:28:12 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-06-18 19:12:45 -0400 |
commit | d0a530ba424ec1be7630f7fce2db9860b9429b8f (patch) | |
tree | df13746ef719c4859c1833ca6eaea108cf88f0a1 /drivers/acpi/video_detect.c | |
parent | 234b7cf88dd42eab08c99afa455669f035e8d861 (diff) |
acpi-video-detect: Remove old API
Remove the old backlight interface selection API now that all drivers
have been ported to the new API.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/video_detect.c')
-rw-r--r-- | drivers/acpi/video_detect.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index 0df15673eed2..c3925790203b 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c | |||
@@ -340,37 +340,6 @@ void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type) | |||
340 | } | 340 | } |
341 | EXPORT_SYMBOL(acpi_video_set_dmi_backlight_type); | 341 | EXPORT_SYMBOL(acpi_video_set_dmi_backlight_type); |
342 | 342 | ||
343 | /* | ||
344 | * Compatiblity function, this is going away as soon as all drivers are | ||
345 | * converted to acpi_video_set_dmi_backlight_type(). | ||
346 | * | ||
347 | * Promote the vendor interface instead of the generic video module. | ||
348 | * After calling this function you will probably want to call | ||
349 | * acpi_video_unregister() to make sure the video module is not loaded | ||
350 | */ | ||
351 | void acpi_video_dmi_promote_vendor(void) | ||
352 | { | ||
353 | acpi_video_set_dmi_backlight_type(acpi_backlight_vendor); | ||
354 | } | ||
355 | EXPORT_SYMBOL(acpi_video_dmi_promote_vendor); | ||
356 | |||
357 | /* | ||
358 | * Compatiblity function, this is going away as soon as all drivers are | ||
359 | * converted to acpi_video_get_backlight_type(). | ||
360 | * | ||
361 | * Returns true if video.ko can do backlight switching. | ||
362 | */ | ||
363 | int acpi_video_backlight_support(void) | ||
364 | { | ||
365 | /* | ||
366 | * This is done this way since vendor drivers call this to see | ||
367 | * if they should load, and we do not want them to load for both | ||
368 | * the acpi_backlight_video and acpi_backlight_native cases. | ||
369 | */ | ||
370 | return acpi_video_get_backlight_type() != acpi_backlight_vendor; | ||
371 | } | ||
372 | EXPORT_SYMBOL(acpi_video_backlight_support); | ||
373 | |||
374 | void __exit acpi_video_detect_exit(void) | 343 | void __exit acpi_video_detect_exit(void) |
375 | { | 344 | { |
376 | if (backlight_notifier_registered) | 345 | if (backlight_notifier_registered) |