mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
![Jani Nikula](/assets/img/avatar_default.png)
Turn the quirk ids to enums instead of bits, and hide the masking inside intel_quirks.c. Define the enums in intel_quirks.h to declutter i915_drv.h while at it. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/60d8a20e1f8845b0bef53c2e32d524be888e426d.1661779055.git.jani.nikula@intel.com
25 lines
558 B
C
25 lines
558 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_QUIRKS_H__
|
|
#define __INTEL_QUIRKS_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_i915_private;
|
|
|
|
enum intel_quirk_id {
|
|
QUIRK_BACKLIGHT_PRESENT,
|
|
QUIRK_INCREASE_DDI_DISABLED_TIME,
|
|
QUIRK_INCREASE_T12_DELAY,
|
|
QUIRK_INVERT_BRIGHTNESS,
|
|
QUIRK_LVDS_SSC_DISABLE,
|
|
QUIRK_NO_PPS_BACKLIGHT_POWER_HOOK,
|
|
};
|
|
|
|
void intel_init_quirks(struct drm_i915_private *i915);
|
|
bool intel_has_quirk(struct drm_i915_private *i915, enum intel_quirk_id quirk);
|
|
|
|
#endif /* __INTEL_QUIRKS_H__ */
|