mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
![Jani Nikula](/assets/img/avatar_default.png)
It used to be handy that we only had a couple of headers, but over time i915_drv.h has become unwieldy. Extract declarations to a separate header file corresponding to the implementation module, clarifying the modularity of the driver. Ensure the new header is self-contained, and do so with minimal further includes, using forward declarations as needed. Include the new header only where needed, and sort the modified include directives while at it and as needed. No functional changes. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/2843b028d65e118dc40316aa84bf620a93f6c67b.1556809195.git.jani.nikula@intel.com
20 lines
562 B
C
20 lines
562 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __I915_DEBUGFS_H__
|
|
#define __I915_DEBUGFS_H__
|
|
|
|
struct drm_i915_private;
|
|
struct drm_connector;
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
int i915_debugfs_register(struct drm_i915_private *dev_priv);
|
|
int i915_debugfs_connector_add(struct drm_connector *connector);
|
|
#else
|
|
static inline int i915_debugfs_register(struct drm_i915_private *dev_priv) { return 0; }
|
|
static inline int i915_debugfs_connector_add(struct drm_connector *connector) { return 0; }
|
|
#endif
|
|
|
|
#endif /* __I915_DEBUGFS_H__ */
|