17 #include <linux/ctype.h>
18 #include <linux/stddef.h>
28 static int pc_clk_enable(
unsigned id)
34 return (
int)
id < 0 ? -
EINVAL : 0;
37 static void pc_clk_disable(
unsigned id)
54 return (
int)
id < 0 ? -
EINVAL : 0;
57 static int pc_clk_set_rate(
unsigned id,
unsigned rate)
67 return (
int)
id < 0 ? -
EINVAL : 0;
70 static int pc_clk_set_min_rate(
unsigned id,
unsigned rate)
76 return (
int)
id < 0 ? -
EINVAL : 0;
79 static int pc_clk_set_max_rate(
unsigned id,
unsigned rate)
85 return (
int)
id < 0 ? -
EINVAL : 0;
88 static int pc_clk_set_flags(
unsigned id,
unsigned flags)
94 return (
int)
id < 0 ? -
EINVAL : 0;
97 static unsigned pc_clk_get_rate(
unsigned id)
105 static unsigned pc_clk_is_enabled(
unsigned id)
113 static long pc_clk_round_rate(
unsigned id,
unsigned rate)
120 static bool pc_clk_is_local(
unsigned id)
126 .enable = pc_clk_enable,
127 .disable = pc_clk_disable,
128 .auto_off = pc_clk_disable,
130 .set_rate = pc_clk_set_rate,
131 .set_min_rate = pc_clk_set_min_rate,
132 .set_max_rate = pc_clk_set_max_rate,
133 .set_flags = pc_clk_set_flags,
134 .get_rate = pc_clk_get_rate,
135 .is_enabled = pc_clk_is_enabled,
136 .round_rate = pc_clk_round_rate,
137 .is_local = pc_clk_is_local,