]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
clk: meson: gxbb: use the existing HHI_HDMI_PLL_CNTL3 macro
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Mon, 5 Jan 2026 20:47:10 +0000 (21:47 +0100)
committerJerome Brunet <jbrunet@baylibre.com>
Tue, 6 Jan 2026 08:52:21 +0000 (09:52 +0100)
There's no need to calculate HHI_HDMI_PLL_CNTL + 8 when we have a
HHI_HDMI_PLL_CNTL3 macro that has the correct offset already. No
functional changes, this makes it easier to compare the driver with the
datasheets.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20260105204710.447779-4-martin.blumenstingl@googlemail.com
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/gxbb.c

index ec9a3414875ac375b289cf6e846514d73ccbd41a..f9131d014ef423a89b56e065146c102cca5e00a0 100644 (file)
@@ -362,7 +362,7 @@ static const struct clk_div_table gxl_hdmi_pll_od_div_table[] = {
 
 static struct clk_regmap gxl_hdmi_pll_od = {
        .data = &(struct clk_regmap_div_data){
-               .offset = HHI_HDMI_PLL_CNTL + 8,
+               .offset = HHI_HDMI_PLL_CNTL3,
                .shift = 21,
                .width = 2,
                .table = gxl_hdmi_pll_od_div_table,
@@ -380,7 +380,7 @@ static struct clk_regmap gxl_hdmi_pll_od = {
 
 static struct clk_regmap gxl_hdmi_pll_od2 = {
        .data = &(struct clk_regmap_div_data){
-               .offset = HHI_HDMI_PLL_CNTL + 8,
+               .offset = HHI_HDMI_PLL_CNTL3,
                .shift = 23,
                .width = 2,
                .table = gxl_hdmi_pll_od_div_table,
@@ -398,7 +398,7 @@ static struct clk_regmap gxl_hdmi_pll_od2 = {
 
 static struct clk_regmap gxl_hdmi_pll = {
        .data = &(struct clk_regmap_div_data){
-               .offset = HHI_HDMI_PLL_CNTL + 8,
+               .offset = HHI_HDMI_PLL_CNTL3,
                .shift = 19,
                .width = 2,
                .table = gxl_hdmi_pll_od_div_table,