f06b2052f7
Since commit 987d65d01356 (drm: debugfs: make drm_debugfs_create_files() never fail), drm_debugfs_create_files() never fails and should return void. Therefore, remove its use as the return value of debugfs_init() functions and have the functions return void. v2: convert intel_display_debugfs_register() stub to return void too. Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20200310133121.27913-15-wambui.karugax@gmail.com
21 lines
592 B
C
21 lines
592 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2020 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_DISPLAY_DEBUGFS_H__
|
|
#define __INTEL_DISPLAY_DEBUGFS_H__
|
|
|
|
struct drm_connector;
|
|
struct drm_i915_private;
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
void intel_display_debugfs_register(struct drm_i915_private *i915);
|
|
int intel_connector_debugfs_add(struct drm_connector *connector);
|
|
#else
|
|
static inline void intel_display_debugfs_register(struct drm_i915_private *i915) {}
|
|
static inline int intel_connector_debugfs_add(struct drm_connector *connector) { return 0; }
|
|
#endif
|
|
|
|
#endif /* __INTEL_DISPLAY_DEBUGFS_H__ */
|