mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
drm/i915/debugfs: pass intel_connector to intel_connector_debugfs_add()
Prefer the intel_ types. No functional changes. v2: Fix build. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210830140222.12228-1-jani.nikula@intel.com
This commit is contained in:
parent
fd71fc38da
commit
0f26c8e23a
3 changed files with 6 additions and 5 deletions
|
@ -124,7 +124,7 @@ int intel_connector_register(struct drm_connector *connector)
|
||||||
goto err_backlight;
|
goto err_backlight;
|
||||||
}
|
}
|
||||||
|
|
||||||
intel_connector_debugfs_add(connector);
|
intel_connector_debugfs_add(intel_connector);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
|
@ -2443,8 +2443,9 @@ static const struct file_operations i915_dsc_bpp_fops = {
|
||||||
* Cleanup will be done by drm_connector_unregister() through a call to
|
* Cleanup will be done by drm_connector_unregister() through a call to
|
||||||
* drm_debugfs_connector_remove().
|
* drm_debugfs_connector_remove().
|
||||||
*/
|
*/
|
||||||
void intel_connector_debugfs_add(struct drm_connector *connector)
|
void intel_connector_debugfs_add(struct intel_connector *intel_connector)
|
||||||
{
|
{
|
||||||
|
struct drm_connector *connector = &intel_connector->base;
|
||||||
struct dentry *root = connector->debugfs_entry;
|
struct dentry *root = connector->debugfs_entry;
|
||||||
struct drm_i915_private *dev_priv = to_i915(connector->dev);
|
struct drm_i915_private *dev_priv = to_i915(connector->dev);
|
||||||
|
|
||||||
|
|
|
@ -6,17 +6,17 @@
|
||||||
#ifndef __INTEL_DISPLAY_DEBUGFS_H__
|
#ifndef __INTEL_DISPLAY_DEBUGFS_H__
|
||||||
#define __INTEL_DISPLAY_DEBUGFS_H__
|
#define __INTEL_DISPLAY_DEBUGFS_H__
|
||||||
|
|
||||||
struct drm_connector;
|
|
||||||
struct drm_crtc;
|
struct drm_crtc;
|
||||||
struct drm_i915_private;
|
struct drm_i915_private;
|
||||||
|
struct intel_connector;
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_FS
|
#ifdef CONFIG_DEBUG_FS
|
||||||
void intel_display_debugfs_register(struct drm_i915_private *i915);
|
void intel_display_debugfs_register(struct drm_i915_private *i915);
|
||||||
void intel_connector_debugfs_add(struct drm_connector *connector);
|
void intel_connector_debugfs_add(struct intel_connector *connector);
|
||||||
void intel_crtc_debugfs_add(struct drm_crtc *crtc);
|
void intel_crtc_debugfs_add(struct drm_crtc *crtc);
|
||||||
#else
|
#else
|
||||||
static inline void intel_display_debugfs_register(struct drm_i915_private *i915) {}
|
static inline void intel_display_debugfs_register(struct drm_i915_private *i915) {}
|
||||||
static inline void intel_connector_debugfs_add(struct drm_connector *connector) {}
|
static inline void intel_connector_debugfs_add(struct intel_connector *connector) {}
|
||||||
static inline void intel_crtc_debugfs_add(struct drm_crtc *crtc) {}
|
static inline void intel_crtc_debugfs_add(struct drm_crtc *crtc) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue