drm/i915: panel: Use intel_panel_compute_brightness() from pwm_setup_backlight()
authorHans de Goede <hdegoede@redhat.com>
Fri, 21 Feb 2020 17:29:26 +0000 (18:29 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 4 Mar 2020 15:52:21 +0000 (16:52 +0100)
commitd59b1d1bdffa62291958d14f4e1ea69bb65958a6
tree6e45fe1d01a53ad662fa6e9368b87a2a93a6d933
parent8e9f84cf5cac248a1c6a5daa4942879c8b765058
drm/i915: panel: Use intel_panel_compute_brightness() from pwm_setup_backlight()

Use intel_panel_compute_brightness() from pwm_setup_backlight() so that
we correctly take i915_modparams.invert_brightness and/or
QUIRK_INVERT_BRIGHTNESS into account when setting + getting the initial
brightness value.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200221172927.510027-1-hdegoede@redhat.com
drivers/gpu/drm/i915/display/intel_panel.c