clk: nodrv: Add a determine_rate hook
authorMaxime Ripard <maxime@cerno.tech>
Fri, 5 May 2023 11:25:08 +0000 (13:25 +0200)
committerStephen Boyd <sboyd@kernel.org>
Fri, 9 Jun 2023 01:39:25 +0000 (18:39 -0700)
commit9e3943afb2f671b0abc0aa1b381001e5e45fe976
tree925316d0c23fbef302c79b5750e27692d054eee5
parente2533dad2f683976166d365aaeec65af7841a2de
clk: nodrv: Add a determine_rate hook

The nodrv clock implements a mux with a set_parent hook, but doesn't
provide a determine_rate implementation.

Even though it's a mock clock and the missing function is harmless,
we'll start to require a determine_rate implementation when set_parent
is set, so let's fill it.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20221018-clk-range-checks-fixes-v4-6-971d5077e7d2@cerno.tech
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c