clk: fixed-factor: add optional accuracy support
authorThéo Lebrun <theo.lebrun@bootlin.com>
Wed, 21 Feb 2024 18:22:09 +0000 (19:22 +0100)
committerStephen Boyd <sboyd@kernel.org>
Thu, 22 Feb 2024 06:11:48 +0000 (22:11 -0800)
commitff773fd2199960ffab0caae07451fe0f12b05bb8
tree94aeec8d92a401d995f0c806a220517033a457d9
parent6613476e225e090cc9aad49be7fa504e290dd33d
clk: fixed-factor: add optional accuracy support

Fixed factor clock reports the parent clock accuracy. Add flags and acc
fields to `struct clk_fixed_factor` to support setting a fixed
accuracy. The default if no flag is set is not changed: use the parent
clock accuracy.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20240221-mbly-clk-v7-1-31d4ce3630c3@bootlin.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-fixed-factor.c
include/linux/clk-provider.h