bcm27xx: update patches from RPi foundation
[oweals/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0529-clk-bcm-rpi-Rename-is_prepared-function.patch
1 From c37a4cc3fc34b6c53c331d0d079df322082ff183 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime@cerno.tech>
3 Date: Thu, 20 Feb 2020 12:45:47 +0100
4 Subject: [PATCH] clk: bcm: rpi: Rename is_prepared function
5
6 The raspberrypi_fw_pll_is_on function doesn't only apply to PLL
7 registered in the driver, but any clock exposed by the firmware.
8
9 Since we also implement the is_prepared hook, make the function
10 consistent with the other function names.
11
12 Cc: Michael Turquette <mturquette@baylibre.com>
13 Cc: linux-clk@vger.kernel.org
14 Acked-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
15 Reviewed-by: Stephen Boyd <sboyd@kernel.org>
16 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
17 ---
18  drivers/clk/bcm/clk-raspberrypi.c | 4 ++--
19  1 file changed, 2 insertions(+), 2 deletions(-)
20
21 --- a/drivers/clk/bcm/clk-raspberrypi.c
22 +++ b/drivers/clk/bcm/clk-raspberrypi.c
23 @@ -87,7 +87,7 @@ static int raspberrypi_clock_property(st
24         return 0;
25  }
26  
27 -static int raspberrypi_fw_pll_is_on(struct clk_hw *hw)
28 +static int raspberrypi_fw_is_prepared(struct clk_hw *hw)
29  {
30         struct raspberrypi_clk_data *data =
31                 container_of(hw, struct raspberrypi_clk_data, hw);
32 @@ -170,7 +170,7 @@ static int raspberrypi_pll_determine_rat
33  }
34  
35  static const struct clk_ops raspberrypi_firmware_pll_clk_ops = {
36 -       .is_prepared = raspberrypi_fw_pll_is_on,
37 +       .is_prepared = raspberrypi_fw_is_prepared,
38         .recalc_rate = raspberrypi_fw_pll_get_rate,
39         .set_rate = raspberrypi_fw_pll_set_rate,
40         .determine_rate = raspberrypi_pll_determine_rate,