mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
drm/i915/display: add I915 conditional build to intel_lvds.h
Add stubs for !I915. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Acked-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/f06a88a69b7e326ff0914baca5e6a0e5f06e1867.1694514689.git.jani.nikula@intel.com
This commit is contained in:
parent
a4ba1ea69f
commit
197a30c4c6
|
|
@ -13,10 +13,29 @@
|
|||
enum pipe;
|
||||
struct drm_i915_private;
|
||||
|
||||
#ifdef I915
|
||||
bool intel_lvds_port_enabled(struct drm_i915_private *dev_priv,
|
||||
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);
|
||||
#else
|
||||
static inline bool intel_lvds_port_enabled(struct drm_i915_private *dev_priv,
|
||||
i915_reg_t lvds_reg, enum pipe *pipe)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
static inline void intel_lvds_init(struct drm_i915_private *dev_priv)
|
||||
{
|
||||
}
|
||||
static inline struct intel_encoder *intel_get_lvds_encoder(struct drm_i915_private *dev_priv)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
static inline bool intel_is_dual_link_lvds(struct drm_i915_private *dev_priv)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __INTEL_LVDS_H__ */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user