From: Richard Acayan Date: Mon, 16 Jan 2023 22:49:08 +0000 (-0500) Subject: drm/panel: sofef00: Use 16-bit brightness function X-Git-Tag: v6.6.7~1918^2~23^2~900 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd40749a4f62a03d0aebe6eb446ea84a9901795a;p=platform%2Fkernel%2Flinux-starfive.git drm/panel: sofef00: Use 16-bit brightness function These panels communicate brightness in big endian. This is not a quirk of the panels themselves, but rather, a part of the MIPI standard. Use the new mipi_dsi_dcs_set_display_brightness_large() function that properly handles 16-bit brightness instead of doing special processing of the brightness values. Signed-off-by: Richard Acayan Tested-by: Caleb Connolly Reviewed-by: Neil Armstrong Reviewed-by: Sam Ravnborg Signed-off-by: Neil Armstrong Link: https://patchwork.freedesktop.org/patch/msgid/20230116224909.23884-3-mailingradian@gmail.com --- diff --git a/drivers/gpu/drm/panel/panel-samsung-sofef00.c b/drivers/gpu/drm/panel/panel-samsung-sofef00.c index 9db49a0..1ebb79e3 100644 --- a/drivers/gpu/drm/panel/panel-samsung-sofef00.c +++ b/drivers/gpu/drm/panel/panel-samsung-sofef00.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include