Skip to content

Commit c1ce350

Browse files
mripardbebarino
authored andcommitted
clk: bcm: rpi: Rename is_prepared function
The raspberrypi_fw_pll_is_on function doesn't only apply to PLL registered in the driver, but any clock exposed by the firmware. Since we also implement the is_prepared hook, make the function consistent with the other function names. Cc: Michael Turquette <[email protected]> Cc: [email protected] Acked-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://lore.kernel.org/r/ac93cc4e245316bb7e7426ac5ab0de8f3d919731.1592210452.git-series.maxime@cerno.tech Signed-off-by: Stephen Boyd <[email protected]>
1 parent 81df015 commit c1ce350

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/bcm/clk-raspberrypi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static int raspberrypi_clock_property(struct rpi_firmware *firmware,
8585
return 0;
8686
}
8787

88-
static int raspberrypi_fw_pll_is_on(struct clk_hw *hw)
88+
static int raspberrypi_fw_is_prepared(struct clk_hw *hw)
8989
{
9090
struct raspberrypi_clk_data *data =
9191
container_of(hw, struct raspberrypi_clk_data, hw);
@@ -166,7 +166,7 @@ static int raspberrypi_pll_determine_rate(struct clk_hw *hw,
166166
}
167167

168168
static const struct clk_ops raspberrypi_firmware_pll_clk_ops = {
169-
.is_prepared = raspberrypi_fw_pll_is_on,
169+
.is_prepared = raspberrypi_fw_is_prepared,
170170
.recalc_rate = raspberrypi_fw_pll_get_rate,
171171
.set_rate = raspberrypi_fw_pll_set_rate,
172172
.determine_rate = raspberrypi_pll_determine_rate,

0 commit comments

Comments
 (0)