16 #include <linux/kernel.h>
17 #include <linux/module.h>
18 #include <linux/ctype.h>
23 static int clock_debug_rate_set(
void *
data,
u64 val)
42 static int clock_debug_rate_get(
void *data,
u64 *val)
50 clock_debug_rate_set,
"%llu\n");
52 static int clock_debug_enable_set(
void *data,
u64 val)
58 rc = clock->
ops->enable(clock->
id);
60 clock->
ops->disable(clock->
id);
65 static int clock_debug_enable_get(
void *data,
u64 *val)
69 *val = clock->
ops->is_enabled(clock->
id);
75 clock_debug_enable_set,
"%llu\n");
77 static int clock_debug_local_get(
void *data,
u64 *val)
81 *val = clock->
ops->is_local(clock->
id);
89 static struct dentry *debugfs_base;
108 for (ptr = temp; *
ptr; ptr++)
116 clock, &clock_rate_fops))
120 clock, &clock_enable_fops))