#define pr_fmt(fmt) …
#include <linux/debugfs.h>
#include <drm/drm_connector.h>
#include <drm/drm_file.h>
#include "dp_catalog.h"
#include "dp_aux.h"
#include "dp_ctrl.h"
#include "dp_debug.h"
#include "dp_display.h"
#define DEBUG_NAME …
struct dp_debug_private { … };
static int dp_debug_show(struct seq_file *seq, void *p)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static int dp_test_data_show(struct seq_file *m, void *data)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static int dp_test_type_show(struct seq_file *m, void *data)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static ssize_t dp_test_active_write(struct file *file,
const char __user *ubuf,
size_t len, loff_t *offp)
{ … }
static int dp_test_active_show(struct seq_file *m, void *data)
{ … }
static int dp_test_active_open(struct inode *inode,
struct file *file)
{ … }
static const struct file_operations test_active_fops = …;
int dp_debug_init(struct device *dev, struct dp_panel *panel,
struct dp_link *link,
struct drm_connector *connector,
struct dentry *root, bool is_edp)
{ … }