[PATCH 6/6] drm: drm_backlight use the connect value to set brightness property

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The brightness property was set with the incoming value
instead of the calculated value.

Signed-off-by: Marta Lofstedt <marta.lofstedt@xxxxxxxxx>
---
 drivers/gpu/drm/drm_backlight.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_backlight.c b/drivers/gpu/drm/drm_backlight.c
index 92d231a..e73ec8e 100644
--- a/drivers/gpu/drm/drm_backlight.c
+++ b/drivers/gpu/drm/drm_backlight.c
@@ -132,7 +132,7 @@ static void __drm_backlight_real_changed(struct drm_backlight *b, uint64_t v)
 		set = div_u64(v << 16, max);
 
 	drm_object_property_set_value(&b->connector->base,
-				      config->brightness_property, v);
+				      config->brightness_property, set);
 }
 
 /* caller must hold @drm_backlight_lock */
-- 
2.9.3

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux