summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_bios.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2014-04-09 12:22:06 +0400
committerJani Nikula <jani.nikula@intel.com>2014-04-11 14:22:27 +0400
commit39fbc9c8f6765959b55e0b127dd5c57df5a47d67 (patch)
tree6369df006d91ad85b659f26a98f05b725584cca5 /drivers/gpu/drm/i915/intel_bios.h
parent2ab1bc9df01dbc19b55b2271100db7407fa6bfdc (diff)
downloadlinux-39fbc9c8f6765959b55e0b127dd5c57df5a47d67.tar.xz
drm/i915: check VBT for supported backlight type
The only supported types are none and PWM. Other values are obsolete or reserved, don't add them. Tested-by: Kamal Mostafa <kamal@canonical.com> Tested-by: Martin <bugs@mrvanes.com> Tested-by: jrg.otte@gmail.com Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_bios.h')
-rw-r--r--drivers/gpu/drm/i915/intel_bios.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_bios.h b/drivers/gpu/drm/i915/intel_bios.h
index 83b7629e4367..f27f7b282465 100644
--- a/drivers/gpu/drm/i915/intel_bios.h
+++ b/drivers/gpu/drm/i915/intel_bios.h
@@ -374,6 +374,9 @@ struct bdb_lvds_lfp_data {
struct bdb_lvds_lfp_data_entry data[16];
} __packed;
+#define BDB_BACKLIGHT_TYPE_NONE 0
+#define BDB_BACKLIGHT_TYPE_PWM 2
+
struct bdb_lfp_backlight_data_entry {
u8 type:2;
u8 active_low_pwm:1;