From: Marek Vasut Date: Thu, 26 Jan 2023 20:06:02 +0000 (+0100) Subject: clk: renesas: Convert Gen2/Gen3 clock tables to clk-provider struct clk_div_table X-Git-Tag: v2025.01-rc5-pxa1908~1124^2~7 X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=d48c38db13a7ae107f395c8479938e958b0ab31e;p=u-boot.git clk: renesas: Convert Gen2/Gen3 clock tables to clk-provider struct clk_div_table Replace custom local structure with matching one from clk-provider.h . No functional change. Signed-off-by: Marek Vasut --- diff --git a/drivers/clk/renesas/clk-rcar-gen2.c b/drivers/clk/renesas/clk-rcar-gen2.c index 3a68c5ad0e..850d641119 100644 --- a/drivers/clk/renesas/clk-rcar-gen2.c +++ b/drivers/clk/renesas/clk-rcar-gen2.c @@ -17,6 +17,7 @@ #include #include #include +#include #include @@ -26,11 +27,6 @@ #define CPG_PLL0CR 0x00d8 #define CPG_SDCKCR 0x0074 -struct clk_div_table { - u8 val; - u8 div; -}; - /* SDHI divisors */ static const struct clk_div_table cpg_sdh_div_table[] = { { 0, 2 }, { 1, 3 }, { 2, 4 }, { 3, 6 }, diff --git a/drivers/clk/renesas/clk-rcar-gen3.c b/drivers/clk/renesas/clk-rcar-gen3.c index dd61fe0c7c..3df6aaabf0 100644 --- a/drivers/clk/renesas/clk-rcar-gen3.c +++ b/drivers/clk/renesas/clk-rcar-gen3.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -55,11 +56,6 @@ .div = (sd_div), \ } -struct sd_div_table { - u32 val; - unsigned int div; -}; - /* SDn divider * sd_srcfc sd_fc div * stp_hck stp_ck (div) (div) = sd_srcfc x sd_fc @@ -75,7 +71,7 @@ struct sd_div_table { * 1 0 3 (8) 0 (2) 16 * 1 0 4 (16) 0 (2) 32 */ -static const struct sd_div_table cpg_sd_div_table[] = { +static const struct clk_div_table cpg_sd_div_table[] = { /* CPG_SD_DIV_TABLE_DATA(stp_hck, stp_ck, sd_srcfc, sd_fc, sd_div) */ CPG_SD_DIV_TABLE_DATA(0, 0, 0, 1, 4), CPG_SD_DIV_TABLE_DATA(0, 0, 1, 1, 8),