OSDN Git Service

clk: divider: add CLK_DIVIDER_READ_ONLY flag
authorHeiko Stuebner <heiko@sntech.de>
Fri, 23 May 2014 13:02:15 +0000 (18:32 +0530)
committerMike Turquette <mturquette@linaro.org>
Fri, 23 May 2014 20:45:47 +0000 (13:45 -0700)
commit79c6ab509558f9871175c7e4411f857de12cf33b
treedd67f6534ab3be884ec541f710605af688e87c9a
parent1923ca92a618b6107d3a44b5c9f9360b104dcddb
clk: divider: add CLK_DIVIDER_READ_ONLY flag

From: Heiko Stuebner <heiko@sntech.de>

Similar to muxes which already have a read-only flag there sometimes
exist dividers which should not be changed by the clock framework
but whose value still should be readable.

Therefore add a READ_ONLY flag similar to the mux-one to clk-divider

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
[changed flag bit to BIT(5) as suggested by Tomasz Figa]
Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
Acked-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Max Schwarz <max.schwarz@online.de>
Tested-by: Max Schwarz <max.schwarz@online.de>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-divider.c
include/linux/clk-provider.h