]> Git Repo - u-boot.git/blobdiff - doc/driver-model/spi-howto.rst
dm: treewide: Rename auto_alloc_size members to be shorter
[u-boot.git] / doc / driver-model / spi-howto.rst
index 9631a5059d3f9bc3fccb0a77ee96082c4bd1722c..a12d6922e55039c39dbacf9c690e160298cb878f 100644 (file)
@@ -231,7 +231,7 @@ tree, but we need to tell it the size:
 
        U_BOOT_DRIVER(spi_exynos) = {
        ...
-               .platdata_auto_alloc_size = sizeof(struct exynos_spi_platdata),
+               .platdata_auto = sizeof(struct exynos_spi_platdata),
 
 
 Here is a sample function. It gets a pointer to the platform data and
@@ -335,7 +335,7 @@ DM can auto-allocate this also:
 
        U_BOOT_DRIVER(spi_exynos) = {
        ...
-               .priv_auto_alloc_size = sizeof(struct exynos_spi_priv),
+               .priv_auto = sizeof(struct exynos_spi_priv),
 
 
 Note that this is created before the probe method is called, and destroyed
@@ -621,7 +621,7 @@ needs, but this is the minimum.
 
        U_BOOT_DRIVER(exynos_spi) = {
        ...
-               .per_child_auto_alloc_size      = sizeof(struct spi_slave),
+               .per_child_auto = sizeof(struct spi_slave),
        }
 
 
This page took 0.025576 seconds and 4 git commands to generate.