DRM: Add drm backlight dpms interface
Subsystems (2)
RFC PATCH 1/1 DRM: Add drm backlight dpms interface
The backlight devices have the ability to control their power levels and it is supported by backlight framework or lcd framework. This helps use to drm the functions to control power levels of the existing backlight framework or lcd framework.
Signed-off-by Joonyoung Shim <[email protected]>
Signed-off-by Kyungmin Park <[email protected]>
--- drivers/gpu/drm/Makefile | 2 +- drivers/gpu/drm/drm_backlight.c | 127 +++++++++++++++++++++++++++++++++++++++ include/drm/drm_backlight.h | 19 ++++++ 3 files changed, 147 insertions(+), 1 deletions(-) create mode 100644 drivers/gpu/drm/drm_backlight.c create mode 100644 include/drm/drm_backlight.h
drivers/gpu/drm/Makefile +1 -1
@@ -12,7 +12,7 @@ drm-y := drm_auth.o drm_buffer.o drm_bufs.o drm_cache.o \ drm_platform.o drm_sysfs.o drm_hashtab.o drm_sman.o drm_mm.o \ drm_crtc.o drm_modes.o drm_edid.o \ drm_info.o drm_debugfs.o drm_encoder_slave.o \ - drm_trace_points.o drm_global.o drm_usb.o + drm_trace_points.o drm_global.o drm_usb.o drm_backlight.o drm-$(CONFIG_COMPAT) += drm_ioc32.o
drivers/gpu/drm/drm_backlight.c new file +127 -0
127 lines not on this page · raw message
include/drm/drm_backlight.h new file +19 -0
@@ -0,0 +1,19 @@ +/* +* Copyright (C) 2011 Samsung Electronics Co.Ltd +* Author: Joonyoung Shim <[email protected]> +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation; either version 2 of the License, or (at your +* option) any later version. +* +*/ + +enum drm_bl_class_type { +BL_BACKLIGHT_CLASS , +BL_LCD_CLASS , +}; + +extern int drm_bl_register (struct device *dev,int type); +extern void drm_bl_unregister (struct device *dev); +extern void drm_bl_dpms (int mode);
Signature · 1 line
1.7.1