]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/backlight: Modify function to get VESA brightness in Nits
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 6 Feb 2025 06:32:50 +0000 (12:02 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 6 Feb 2025 16:44:42 +0000 (22:14 +0530)
commit3f8a009a794eac8f5b7fac0242d321cc4581303d
tree6683d2b6b93338c52fc341895b59a13bc4fb0f13
parent64481497924d8055fa7d6e60948ca899fe341cb6
drm/i915/backlight: Modify function to get VESA brightness in Nits

Modify vesa_get_brightness function to take into account
luminance_control_support and based on that read the appropriate
register and return the value.

--v2
-Changes since we now use luminance instead of nits

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Tested-by: Ben Kao <ben.kao@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250206063253.2827017-6-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c