clk: bcm: rpi: Use CCF boundaries instead of rolling our own
authorMaxime Ripard <maxime@cerno.tech>
Mon, 15 Jun 2020 08:40:52 +0000 (10:40 +0200)
committerStephen Boyd <sboyd@kernel.org>
Sat, 20 Jun 2020 00:21:16 +0000 (17:21 -0700)
commitdf4b6a4c3bf5b0bc0fb5c35af9ca6da9c78922ee
tree3839fd5d4b92eba5573b4ef7f261282fce2297fd
parent9bd43a6184c2559032a2a8675c135abf7777a736
clk: bcm: rpi: Use CCF boundaries instead of rolling our own

The raspberrypi firmware clock driver has a min_rate / max_rate clamping by
storing the info it needs in a private structure.

However, the CCF already provides such a facility, so we can switch to it
to remove the boilerplate.

Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tested-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/d4c53dab6de5d5f70743d9c139d0117589530e62.1592210452.git-series.maxime@cerno.tech
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/bcm/clk-raspberrypi.c