Skip to content

Commit 42d3c5f

Browse files
Gabriel-Fernandez-stmbebarino
authored andcommitted
clk: nxp: clk-lpc32xx: rename clk_gate_is_enabled()
We need to export clk_gate_is_enabled() from clk framework, then to avoid compilation issue we have to rename clk_gate_is_enabled() in NXP LPC32xx clock driver. We changed all gate op with 'lpc32xx_' prefix: lpc32xx_clk_gate_enable(), lpc32xx_clk_gate_disable(), lpc32xx_clk_gate_is_enabled(). Signed-off-by: Gabriel Fernandez <[email protected]> Acked-by: Vladimir Zapolskiy <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 736de65 commit 42d3c5f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/clk/nxp/clk-lpc32xx.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ static const struct clk_ops clk_usb_i2c_ops = {
885885
.recalc_rate = clk_usb_i2c_recalc_rate,
886886
};
887887

888-
static int clk_gate_enable(struct clk_hw *hw)
888+
static int lpc32xx_clk_gate_enable(struct clk_hw *hw)
889889
{
890890
struct lpc32xx_clk_gate *clk = to_lpc32xx_gate(hw);
891891
u32 mask = BIT(clk->bit_idx);
@@ -894,7 +894,7 @@ static int clk_gate_enable(struct clk_hw *hw)
894894
return regmap_update_bits(clk_regmap, clk->reg, mask, val);
895895
}
896896

897-
static void clk_gate_disable(struct clk_hw *hw)
897+
static void lpc32xx_clk_gate_disable(struct clk_hw *hw)
898898
{
899899
struct lpc32xx_clk_gate *clk = to_lpc32xx_gate(hw);
900900
u32 mask = BIT(clk->bit_idx);
@@ -903,7 +903,7 @@ static void clk_gate_disable(struct clk_hw *hw)
903903
regmap_update_bits(clk_regmap, clk->reg, mask, val);
904904
}
905905

906-
static int clk_gate_is_enabled(struct clk_hw *hw)
906+
static int lpc32xx_clk_gate_is_enabled(struct clk_hw *hw)
907907
{
908908
struct lpc32xx_clk_gate *clk = to_lpc32xx_gate(hw);
909909
u32 val;
@@ -916,9 +916,9 @@ static int clk_gate_is_enabled(struct clk_hw *hw)
916916
}
917917

918918
static const struct clk_ops lpc32xx_clk_gate_ops = {
919-
.enable = clk_gate_enable,
920-
.disable = clk_gate_disable,
921-
.is_enabled = clk_gate_is_enabled,
919+
.enable = lpc32xx_clk_gate_enable,
920+
.disable = lpc32xx_clk_gate_disable,
921+
.is_enabled = lpc32xx_clk_gate_is_enabled,
922922
};
923923

924924
#define div_mask(width) ((1 << (width)) - 1)

0 commit comments

Comments
 (0)