#define pr_fmt(fmt) …
#include <linux/debugfs.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/of.h>
#include <linux/init.h>
#include <linux/limits.h>
#include <linux/slab.h>
#include "opp.h"
static struct dentry *rootdir;
static void opp_set_dev_name(const struct device *dev, char *name)
{ … }
void opp_debug_remove_one(struct dev_pm_opp *opp)
{ … }
static ssize_t bw_name_read(struct file *fp, char __user *userbuf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations bw_name_fops = …;
static void opp_debug_create_bw(struct dev_pm_opp *opp,
struct opp_table *opp_table,
struct dentry *pdentry)
{ … }
static void opp_debug_create_clks(struct dev_pm_opp *opp,
struct opp_table *opp_table,
struct dentry *pdentry)
{ … }
static void opp_debug_create_supplies(struct dev_pm_opp *opp,
struct opp_table *opp_table,
struct dentry *pdentry)
{ … }
void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table)
{ … }
static void opp_list_debug_create_dir(struct opp_device *opp_dev,
struct opp_table *opp_table)
{ … }
static void opp_list_debug_create_link(struct opp_device *opp_dev,
struct opp_table *opp_table)
{ … }
void opp_debug_register(struct opp_device *opp_dev, struct opp_table *opp_table)
{ … }
static void opp_migrate_dentry(struct opp_device *opp_dev,
struct opp_table *opp_table)
{ … }
void opp_debug_unregister(struct opp_device *opp_dev,
struct opp_table *opp_table)
{ … }
static int __init opp_debug_init(void)
{ … }
core_initcall(opp_debug_init);