]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - include/linux/backlight.h
video: backlight: Add helpers to enable and disable backlight
authorMeghana Madhyastha <meghana.madhyastha@gmail.com>
Wed, 24 Jan 2018 16:34:07 +0000 (16:34 +0000)
committerSean Paul <seanpaul@chromium.org>
Mon, 29 Jan 2018 15:34:53 +0000 (10:34 -0500)
commit5b698be0497d8be986e2050e9b1c145b2e0603c2
treebdef5f615f5c3e4170b34fab7966ac5135fbbfd8
parentd8a5b80568a9cb66810e75b182018e9edb68e8ff
video: backlight: Add helpers to enable and disable backlight

Add helper functions backlight_enable and backlight_disable to
enable/disable a backlight device. These helper functions can
then be used by different drm and tinydrm drivers to avoid
repetition of code and also to enforce a uniform and consistent
way to enable/disable a backlight device.

Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Meghana Madhyastha <meghana.madhyastha@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/39b5bf0a02008a8072d910bdf8231c431e9ef504.1516810725.git.meghana.madhyastha@gmail.com
include/linux/backlight.h