Skip to content

Commit a72956c

Browse files
bijudasbebarino
authored andcommitted
clk: versaclock3: Use u8 return type for get_parent() callback
The return type of get_parent() member in struct clk_ops is u8. Use same return type for corresponding callback function as well. Signed-off-by: Biju Das <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 1e8ce92 commit a72956c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/clk/clk-versaclock3.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static const struct clk_div_table div3_divs[] = {
210210

211211
static struct clk_hw *clk_out[6];
212212

213-
static unsigned char vc3_pfd_mux_get_parent(struct clk_hw *hw)
213+
static u8 vc3_pfd_mux_get_parent(struct clk_hw *hw)
214214
{
215215
struct vc3_hw_data *vc3 = container_of(hw, struct vc3_hw_data, hw);
216216
const struct vc3_clk_data *pfd_mux = vc3->data;
@@ -440,7 +440,7 @@ static const struct clk_ops vc3_pll_ops = {
440440
.set_rate = vc3_pll_set_rate,
441441
};
442442

443-
static unsigned char vc3_div_mux_get_parent(struct clk_hw *hw)
443+
static u8 vc3_div_mux_get_parent(struct clk_hw *hw)
444444
{
445445
struct vc3_hw_data *vc3 = container_of(hw, struct vc3_hw_data, hw);
446446
const struct vc3_clk_data *div_mux = vc3->data;
@@ -558,7 +558,7 @@ static int vc3_clk_mux_determine_rate(struct clk_hw *hw,
558558
return ret;
559559
}
560560

561-
static unsigned char vc3_clk_mux_get_parent(struct clk_hw *hw)
561+
static u8 vc3_clk_mux_get_parent(struct clk_hw *hw)
562562
{
563563
struct vc3_hw_data *vc3 = container_of(hw, struct vc3_hw_data, hw);
564564
const struct vc3_clk_data *clk_mux = vc3->data;

0 commit comments

Comments
 (0)