diff options
author | Jani Nikula <jani.nikula@intel.com> | 2023-09-12 14:06:43 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2023-09-29 13:53:16 +0300 |
commit | 6842d38178e71051a8c7ce5bb32314ec2fa5cf17 (patch) | |
tree | 75af4a696b1ada0a44b9024db90be54d2a0cea41 | |
parent | 9543cc39db988527fbb54283aa7b49d810a46f9f (diff) | |
download | lwn-6842d38178e71051a8c7ce5bb32314ec2fa5cf17.tar.gz lwn-6842d38178e71051a8c7ce5bb32314ec2fa5cf17.zip |
drm/i915/display: add I915 conditional build to intel_dvo.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/d43b27742297083b37d52222c4bb72b062ef4967.1694514689.git.jani.nikula@intel.com
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_dvo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dvo.h b/drivers/gpu/drm/i915/display/intel_dvo.h index 3ed0fdf8efff..bf7a356422ab 100644 --- a/drivers/gpu/drm/i915/display/intel_dvo.h +++ b/drivers/gpu/drm/i915/display/intel_dvo.h @@ -8,6 +8,12 @@ struct drm_i915_private; +#ifdef I915 void intel_dvo_init(struct drm_i915_private *dev_priv); +#else +static inline void intel_dvo_init(struct drm_i915_private *dev_priv) +{ +} +#endif #endif /* __INTEL_DVO_H__ */ |