drm/i915/backlight: handle enabled but zero duty cycle at module load
authorJani Nikula <jani.nikula@intel.com>
Tue, 23 Aug 2016 08:10:05 +0000 (10:10 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 29 Aug 2016 11:59:05 +0000 (13:59 +0200)
commit46e69f3982f6ed0f2575ee11649bc77b7a89fd3e
tree2399aa0464ba1faf1419aa5918730140b261b61f
parentce5e2ac1a47ee4a13a05e2400c520f7de9b4becd
drm/i915/backlight: handle enabled but zero duty cycle at module load

Don't consider enabled but zero duty cycle backlight disabled. Clamp
level between min and max for sanity.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1471939811-9817-1-git-send-email-maarten.lankhorst@linux.intel.com
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/intel_panel.c