]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/dp: Modify drm_edp_backlight_set_level
authorSuraj Kandpal <suraj.kandpal@intel.com>
Fri, 20 Jun 2025 06:34:40 +0000 (12:04 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 30 Jun 2025 15:11:46 +0000 (20:41 +0530)
commitf2db78e37fe7f95dde96abe2a2a8412f8f519658
treedc789a18ace6101a24d78e8f7b617d965a70b2b0
parent2ff7f0c381c15f457f83439bfdf5823fb33fb436
drm/dp: Modify drm_edp_backlight_set_level

Modify drm_edp_backlight_set_level to be able to set the value
for register in DP_EDP_PANEL_TARGET_LUMINANCE_VALUE. We multiply
the level with 1000 since we get the value in Nits and the
register accepts it in milliNits.

--v2
-Add comment regarding the unit [Arun]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Link: https://lore.kernel.org/r/20250620063445.3603086-9-suraj.kandpal@intel.com
drivers/gpu/drm/display/drm_dp_helper.c