diff mbox series

[2/3] clk: gate: add duty cycle passthrough ops

Message ID 20180416175743.20826-3-jbrunet@baylibre.com
State New
Headers show
Series clk: add duty cycle support | expand

Commit Message

Jerome Brunet April 16, 2018, 5:57 p.m. UTC
A clock gate does not resample the clock signal, it give the same
signal as the parent if enabled, so it can use the duty cycle
passthrough operations

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>

---
 drivers/clk/clk-gate.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.14.3
diff mbox series

Patch

diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c
index dd82485e09a1..eb6dcebfcd5c 100644
--- a/drivers/clk/clk-gate.c
+++ b/drivers/clk/clk-gate.c
@@ -107,6 +107,8 @@  const struct clk_ops clk_gate_ops = {
 	.enable = clk_gate_enable,
 	.disable = clk_gate_disable,
 	.is_enabled = clk_gate_is_enabled,
+	.set_duty_cycle = __clk_set_duty_cycle_passthrough,
+	.get_duty_cycle = __clk_get_duty_cycle_passthrough,
 };
 EXPORT_SYMBOL_GPL(clk_gate_ops);