Merge remote-tracking branch 's5p/for-next'
[linux-2.6/next.git] / arch / arm / mach-msm / clock-dummy.c
blob8ae376867a51982d5d7bd0ff5c9696c41a305e4a
1 /* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
13 #include "clock.h"
15 static int dummy_clk_enable(unsigned id)
17 return 0;
20 static void dummy_clk_disable(unsigned id)
24 static int dummy_clk_reset(unsigned id, enum clk_reset_action action)
26 return 0;
29 static int dummy_clk_set_rate(unsigned id, unsigned rate)
31 return 0;
34 static int dummy_clk_set_min_rate(unsigned id, unsigned rate)
36 return 0;
39 static int dummy_clk_set_max_rate(unsigned id, unsigned rate)
41 return 0;
44 static int dummy_clk_set_flags(unsigned id, unsigned flags)
46 return 0;
49 static unsigned dummy_clk_get_rate(unsigned id)
51 return 0;
54 static unsigned dummy_clk_is_enabled(unsigned id)
56 return 0;
59 static long dummy_clk_round_rate(unsigned id, unsigned rate)
61 return rate;
64 static bool dummy_clk_is_local(unsigned id)
66 return true;
69 struct clk_ops clk_ops_dummy = {
70 .enable = dummy_clk_enable,
71 .disable = dummy_clk_disable,
72 .reset = dummy_clk_reset,
73 .set_rate = dummy_clk_set_rate,
74 .set_min_rate = dummy_clk_set_min_rate,
75 .set_max_rate = dummy_clk_set_max_rate,
76 .set_flags = dummy_clk_set_flags,
77 .get_rate = dummy_clk_get_rate,
78 .is_enabled = dummy_clk_is_enabled,
79 .round_rate = dummy_clk_round_rate,
80 .is_local = dummy_clk_is_local,