From 72e8aca8ca26482e0f2e4fee6bdfa6c2a88edebd Mon Sep 17 00:00:00 2001 From: Shilpa Suresh Date: Thu, 26 Mar 2020 22:54:19 +0530 Subject: [PATCH] clk: msm: Add clk_set_duty_cycle API declaration Add missing declaration of clk_set_duty_cycle API to the clk header file. Change-Id: I49625c8a4117757e35688f9e4d645d7708a0ee46 Signed-off-by: Shilpa Suresh --- include/linux/clk/msm-clk.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/linux/clk/msm-clk.h b/include/linux/clk/msm-clk.h index baa8e5255a3d..f4425381b344 100644 --- a/include/linux/clk/msm-clk.h +++ b/include/linux/clk/msm-clk.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2009, 2012-2017, The Linux Foundation. All rights reserved. +/* Copyright (c) 2009, 2012-2017, 2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -55,6 +55,11 @@ int clk_reset(struct clk *clk, enum clk_reset_action action); /* Set clock-specific configuration parameters */ int clk_set_flags(struct clk *clk, unsigned long flags); +/* Set clock duty-cycle as a ratio of numerator/denominator for the desired + * duty cycle + */ +int clk_set_duty_cycle(struct clk *clk, u32 numerator, u32 denominator); + /* returns the mux selection index associated with a particular parent */ int parent_to_src_sel(struct clk_src *parents, int num_parents, struct clk *p);