[PATCH 6/6] drm: drm_backlight use the connect value to set brightness property
Marta Lofstedt
marta.lofstedt at intel.com
Mon Oct 24 13:08:53 UTC 2016
The brightness property was set with the incoming value
instead of the calculated value.
Signed-off-by: Marta Lofstedt <marta.lofstedt at intel.com>
---
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
More information about the dri-devel
mailing list