brintos

brintos / linux-shallow public Read only

0
0
Text · 1.2 KiB · 7e1aa89 Raw
49 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.4 */5 6#ifndef _DP_DEBUG_H_7#define _DP_DEBUG_H_8 9#include "dp_panel.h"10#include "dp_link.h"11 12#if defined(CONFIG_DEBUG_FS)13 14/**15 * dp_debug_get() - configure and get the DisplayPlot debug module data16 *17 * @dev: device instance of the caller18 * @panel: instance of panel module19 * @link: instance of link module20 * @connector: double pointer to display connector21 * @root: connector's debugfs root22 * @is_edp: set for eDP connectors / panels23 * return: pointer to allocated debug module data24 *25 * This function sets up the debug module and provides a way26 * for debugfs input to be communicated with existing modules27 */28int dp_debug_init(struct device *dev, struct dp_panel *panel,29		  struct dp_link *link,30		  struct drm_connector *connector,31		  struct dentry *root,32		  bool is_edp);33 34#else35 36static inline37int dp_debug_init(struct device *dev, struct dp_panel *panel,38		  struct dp_link *link,39		  struct drm_connector *connector,40		  struct dentry *root,41		  bool is_edp)42{43	return -EINVAL;44}45 46#endif /* defined(CONFIG_DEBUG_FS) */47 48#endif /* _DP_DEBUG_H_ */49