diff options
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_lvds.h')
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_lvds.h | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_lvds.h b/drivers/gpu/drm/i915/display/intel_lvds.h index bc9c8b84ba2f..a6db1706a97c 100644 --- a/drivers/gpu/drm/i915/display/intel_lvds.h +++ b/drivers/gpu/drm/i915/display/intel_lvds.h @@ -8,15 +8,34 @@ #include <linux/types.h> -#include "i915_reg.h" +#include "i915_reg_defs.h" enum pipe; -struct drm_i915_private; +struct intel_display; -bool intel_lvds_port_enabled(struct drm_i915_private *dev_priv, +#ifdef I915 +bool intel_lvds_port_enabled(struct intel_display *display, i915_reg_t lvds_reg, enum pipe *pipe); -void intel_lvds_init(struct drm_i915_private *dev_priv); -struct intel_encoder *intel_get_lvds_encoder(struct drm_i915_private *dev_priv); -bool intel_is_dual_link_lvds(struct drm_i915_private *dev_priv); +void intel_lvds_init(struct intel_display *display); +struct intel_encoder *intel_get_lvds_encoder(struct intel_display *display); +bool intel_is_dual_link_lvds(struct intel_display *display); +#else +static inline bool intel_lvds_port_enabled(struct intel_display *display, + i915_reg_t lvds_reg, enum pipe *pipe) +{ + return false; +} +static inline void intel_lvds_init(struct intel_display *display) +{ +} +static inline struct intel_encoder *intel_get_lvds_encoder(struct intel_display *display) +{ + return NULL; +} +static inline bool intel_is_dual_link_lvds(struct intel_display *display) +{ + return false; +} +#endif #endif /* __INTEL_LVDS_H__ */ |
