]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: fix build errors generated by last merges
authorDario Binacchi <dariobin@libero.it>
Fri, 15 Jan 2021 08:10:26 +0000 (09:10 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 15 Jan 2021 18:12:38 +0000 (13:12 -0500)
Something was wrong in the merge process into the mainline.
Some added patches access driver structure fields and functions that
have been modified by previous patches.
The patch renames:
 - dev_get_platdata to dev_get_plat
 - dev_get_uclass_platdata to dev_get_uclass_plat
 - ofdata_to_platdata to of_to_plat
 - plat_data_alloc_size to plat_auto
 - priv_auto_alloc_size to priv_auto
 - video_uc_platdata to video_uc_plat

Signed-off-by: Dario Binacchi <dariobin@libero.it>
drivers/clk/ti/clk-am3-dpll.c
drivers/clk/ti/clk-ctrl.c
drivers/clk/ti/clk-divider.c
drivers/clk/ti/clk-gate.c
drivers/clk/ti/clk-mux.c
drivers/pwm/pwm-ti-ehrpwm.c
drivers/spi/ca_sflash.c
drivers/video/seps525.c
drivers/video/tdo-tl070wsh30.c
drivers/video/ti/tilcdc-panel.c
drivers/video/ti/tilcdc.c

index 7916a24538bde8b6d6434a0d1b3a861956190db8..90b4cc69efa5d67e579f584f2a7702fe718a6f50 100644 (file)
@@ -260,7 +260,7 @@ U_BOOT_DRIVER(clk_ti_am3_dpll) = {
        .name = "ti_am3_dpll_clock",
        .id = UCLASS_CLK,
        .of_match = clk_ti_am3_dpll_of_match,
-       .ofdata_to_platdata = clk_ti_am3_dpll_of_to_plat,
+       .of_to_plat = clk_ti_am3_dpll_of_to_plat,
        .probe = clk_ti_am3_dpll_probe,
        .remove = clk_ti_am3_dpll_remove,
        .priv_auto = sizeof(struct clk_ti_am3_dpll_priv),
index 940e8d6cafb343bfa16444625bf21da3045c3535..3c6195b2086fb8f7ea59b891f87db96be24d702a 100644 (file)
@@ -148,7 +148,7 @@ U_BOOT_DRIVER(clk_ti_ctrl) = {
        .name = "ti_ctrl_clk",
        .id = UCLASS_CLK,
        .of_match = clk_ti_ctrl_ids,
-       .ofdata_to_platdata = clk_ti_ctrl_of_to_plat,
+       .of_to_plat = clk_ti_ctrl_of_to_plat,
        .ops = &clk_ti_ctrl_ops,
        .priv_auto = sizeof(struct clk_ti_ctrl_priv),
 };
index a8626377851230dbcf226d543b98bdabd029b652..270f2fbdf0ccb6a65807e6304456c8748eaaea48 100644 (file)
@@ -373,7 +373,7 @@ U_BOOT_DRIVER(clk_ti_divider) = {
        .name = "ti_divider_clock",
        .id = UCLASS_CLK,
        .of_match = clk_ti_divider_of_match,
-       .ofdata_to_platdata = clk_ti_divider_of_to_plat,
+       .of_to_plat = clk_ti_divider_of_to_plat,
        .probe = clk_ti_divider_probe,
        .remove = clk_ti_divider_remove,
        .priv_auto = sizeof(struct clk_ti_divider_priv),
index 236eaed6df1ee97ae4017535692f8f789947e29e..0ca453c8dee06408997303c251a395dee677bec0 100644 (file)
@@ -87,7 +87,7 @@ U_BOOT_DRIVER(clk_ti_gate) = {
        .name = "ti_gate_clock",
        .id = UCLASS_CLK,
        .of_match = clk_ti_gate_of_match,
-       .ofdata_to_platdata = clk_ti_gate_of_to_plat,
+       .of_to_plat = clk_ti_gate_of_to_plat,
        .priv_auto = sizeof(struct clk_ti_gate_priv),
        .ops = &clk_ti_gate_ops,
 };
index 419502c389998bf7b6942e298200583c8bad2a49..bb5e49e11425c95f7e957cfb53fcc652acd3f63c 100644 (file)
@@ -245,7 +245,7 @@ U_BOOT_DRIVER(clk_ti_mux) = {
        .name = "ti_mux_clock",
        .id = UCLASS_CLK,
        .of_match = clk_ti_mux_of_match,
-       .ofdata_to_platdata = clk_ti_mux_of_to_plat,
+       .of_to_plat = clk_ti_mux_of_to_plat,
        .probe = clk_ti_mux_probe,
        .remove = clk_ti_mux_remove,
        .priv_auto = sizeof(struct clk_ti_mux_priv),
index ac3d731d228a5b5d49c4bb5ddef9d293a62e2c23..f09914519bd15f09c0d5132dca7276e906164467 100644 (file)
@@ -461,7 +461,7 @@ U_BOOT_DRIVER(ti_ehrpwm) = {
        .id = UCLASS_PWM,
        .of_match = ti_ehrpwm_ids,
        .ops = &ti_ehrpwm_ops,
-       .ofdata_to_platdata = ti_ehrpwm_of_to_plat,
+       .of_to_plat = ti_ehrpwm_of_to_plat,
        .probe = ti_ehrpwm_probe,
        .remove = ti_ehrpwm_remove,
        .priv_auto = sizeof(struct ti_ehrpwm_priv),
index 00af6bffa6ef92ef256e1b64337a4b16d3794977..84569845b74c31582c8353aa5babd2381f9a4783 100644 (file)
@@ -571,6 +571,6 @@ U_BOOT_DRIVER(ca_sflash) = {
        .id = UCLASS_SPI,
        .of_match = ca_sflash_ids,
        .ops = &ca_sflash_ops,
-       .priv_auto_alloc_size = sizeof(struct ca_sflash_priv),
+       .priv_auto = sizeof(struct ca_sflash_priv),
        .probe = ca_sflash_probe,
 };
index 369e5e6afc87075f5519ca470e3ca0156ae6ba2b..74c8721e1e11d2a9997083b853515358b8cfd233 100644 (file)
@@ -299,7 +299,7 @@ static int seps525_probe(struct udevice *dev)
 
 static int seps525_bind(struct udevice *dev)
 {
-       struct video_uc_platdata *plat = dev_get_uclass_platdata(dev);
+       struct video_uc_plat *plat = dev_get_uclass_plat(dev);
 
        plat->size = WIDTH * HEIGHT * 16;
 
@@ -320,8 +320,8 @@ U_BOOT_DRIVER(seps525_video) = {
        .id = UCLASS_VIDEO,
        .of_match = seps525_ids,
        .ops = &seps525_ops,
-       .platdata_auto_alloc_size = sizeof(struct video_uc_platdata),
+       .plat_auto = sizeof(struct video_uc_plat),
        .bind = seps525_bind,
        .probe = seps525_probe,
-       .priv_auto_alloc_size = sizeof(struct seps525_priv),
+       .priv_auto = sizeof(struct seps525_priv),
 };
index ae9d11f475b6306fb3c888c5aaeaa0b23380b29f..813b87a681739e1e9723db9298c2facb71f8d710 100644 (file)
@@ -34,7 +34,7 @@ static const struct display_timing default_timing = {
 
 static int tl070wsh30_panel_enable_backlight(struct udevice *dev)
 {
-       struct mipi_dsi_panel_plat *plat = dev_get_platdata(dev);
+       struct mipi_dsi_panel_plat *plat = dev_get_plat(dev);
        struct mipi_dsi_device *device = plat->device;
        struct tl070wsh30_panel_priv *priv = dev_get_priv(dev);
        int ret;
@@ -70,7 +70,7 @@ static int tl070wsh30_panel_get_display_timing(struct udevice *dev,
        return 0;
 }
 
-static int tl070wsh30_panel_ofdata_to_platdata(struct udevice *dev)
+static int tl070wsh30_panel_of_to_plat(struct udevice *dev)
 {
        struct tl070wsh30_panel_priv *priv = dev_get_priv(dev);
        int ret;
@@ -105,7 +105,7 @@ static int tl070wsh30_panel_ofdata_to_platdata(struct udevice *dev)
 static int tl070wsh30_panel_probe(struct udevice *dev)
 {
        struct tl070wsh30_panel_priv *priv = dev_get_priv(dev);
-       struct mipi_dsi_panel_plat *plat = dev_get_platdata(dev);
+       struct mipi_dsi_panel_plat *plat = dev_get_plat(dev);
        int ret;
 
        if (IS_ENABLED(CONFIG_DM_REGULATOR) && priv->reg) {
@@ -148,8 +148,8 @@ U_BOOT_DRIVER(tl070wsh30_panel) = {
        .id                       = UCLASS_PANEL,
        .of_match                 = tl070wsh30_panel_ids,
        .ops                      = &tl070wsh30_panel_ops,
-       .ofdata_to_platdata       = tl070wsh30_panel_ofdata_to_platdata,
+       .of_to_plat               = tl070wsh30_panel_of_to_plat,
        .probe                    = tl070wsh30_panel_probe,
-       .platdata_auto_alloc_size = sizeof(struct mipi_dsi_panel_plat),
-       .priv_auto_alloc_size   = sizeof(struct tl070wsh30_panel_priv),
+       .plat_auto                = sizeof(struct mipi_dsi_panel_plat),
+       .priv_auto                = sizeof(struct tl070wsh30_panel_priv),
 };
index b90dfae4ae93f18bdfe7deca3956750ebe4f5c26..df95086a5151521f9c65d50fbf42a984921a743c 100644 (file)
@@ -165,7 +165,7 @@ U_BOOT_DRIVER(tilcdc_panel) = {
        .id = UCLASS_PANEL,
        .of_match = tilcdc_panel_ids,
        .ops = &tilcdc_panel_ops,
-       .ofdata_to_platdata = tilcdc_panel_of_to_plat,
+       .of_to_plat = tilcdc_panel_of_to_plat,
        .probe = tilcdc_panel_probe,
        .remove = tilcdc_panel_remove,
        .priv_auto = sizeof(struct tilcdc_panel_priv),
index d13cc11801d36af95bfba4f01e88957340fc19d7..814126af666445501085ed1cfb333a646d0eacbb 100644 (file)
@@ -155,7 +155,7 @@ static ulong tilcdc_set_pixel_clk_rate(struct udevice *dev, ulong rate)
 
 static int tilcdc_remove(struct udevice *dev)
 {
-       struct video_uc_platdata *uc_plat = dev_get_uclass_platdata(dev);
+       struct video_uc_plat *uc_plat = dev_get_uclass_plat(dev);
        struct tilcdc_priv *priv = dev_get_priv(dev);
 
        uc_plat->base -= 0x20;
@@ -167,7 +167,7 @@ static int tilcdc_remove(struct udevice *dev)
 
 static int tilcdc_probe(struct udevice *dev)
 {
-       struct video_uc_platdata *uc_plat = dev_get_uclass_platdata(dev);
+       struct video_uc_plat *uc_plat = dev_get_uclass_plat(dev);
        struct video_priv *uc_priv = dev_get_uclass_priv(dev);
        struct tilcdc_priv *priv = dev_get_priv(dev);
        struct tilcdc_regs *regs = priv->regs;
@@ -399,7 +399,7 @@ static int tilcdc_of_to_plat(struct udevice *dev)
 
 static int tilcdc_bind(struct udevice *dev)
 {
-       struct video_uc_platdata *uc_plat = dev_get_uclass_platdata(dev);
+       struct video_uc_plat *uc_plat = dev_get_uclass_plat(dev);
 
        uc_plat->size = ((LCDC_MAX_WIDTH * LCDC_MAX_HEIGHT *
                          (1 << LCDC_MAX_LOG2_BPP)) >> 3) + 0x20;
@@ -418,7 +418,7 @@ U_BOOT_DRIVER(tilcdc) = {
        .id = UCLASS_VIDEO,
        .of_match = tilcdc_ids,
        .bind = tilcdc_bind,
-       .ofdata_to_platdata = tilcdc_of_to_plat,
+       .of_to_plat = tilcdc_of_to_plat,
        .probe = tilcdc_probe,
        .remove = tilcdc_remove,
        .priv_auto = sizeof(struct tilcdc_priv)