summaryrefslogtreecommitdiff
path: root/drivers/acpi/video_detect.c
diff options
context:
space:
mode:
authorAaron Lu <aaron.lu@intel.com>2016-04-27 15:45:03 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-05-05 00:41:14 +0300
commit01c3664de62f89f6777e59173ad8e20b5a4c267f (patch)
tree3c3ea42d9813632552043ed0210eaf91393d1d58 /drivers/acpi/video_detect.c
parentf6a4790a5471d7cba406d87f6b41323f40bb93d2 (diff)
downloadlinux-01c3664de62f89f6777e59173ad8e20b5a4c267f.tar.xz
video / backlight: remove the backlight_device_registered API
Since we will need the backlight_device_get_by_type API, we can use it instead of the backlight_device_registered API whenever necessary so remove the backlight_device_registered API. Signed-off-by: Aaron Lu <aaron.lu@intel.com> Acked-by: Jingoo Han <jg1.han@samsung.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
index 1316ddd92fac..3d1327615f72 100644
--- a/drivers/acpi/video_detect.c
+++ b/drivers/acpi/video_detect.c
@@ -358,7 +358,7 @@ enum acpi_backlight_type acpi_video_get_backlight_type(void)
if (!(video_caps & ACPI_VIDEO_BACKLIGHT))
return acpi_backlight_vendor;
- if (acpi_osi_is_win8() && backlight_device_registered(BACKLIGHT_RAW))
+ if (acpi_osi_is_win8() && backlight_device_get_by_type(BACKLIGHT_RAW))
return acpi_backlight_native;
return acpi_backlight_video;