]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: spi: Move the per-child data size to the uclass
authorSimon Glass <sjg@chromium.org>
Sun, 25 Jan 2015 15:27:07 +0000 (08:27 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 00:09:55 +0000 (17:09 -0700)
This is common to all SPI drivers and specifies a structure used by the
uclass. It makes more sense to define it in the uclass.

Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/spi/cadence_qspi.c
drivers/spi/designware_spi.c
drivers/spi/exynos_spi.c
drivers/spi/sandbox_spi.c
drivers/spi/soft_spi.c
drivers/spi/spi-uclass.c
drivers/spi/tegra114_spi.c
drivers/spi/tegra20_sflash.c
drivers/spi/tegra20_slink.c

index 98ae3b808fb0a970b9e467e94bef0e336458bd19..a75fc46e95dc5f060e0e8a6a3e89ef72e4dfb6ec 100644 (file)
@@ -340,6 +340,5 @@ U_BOOT_DRIVER(cadence_spi) = {
        .ofdata_to_platdata = cadence_spi_ofdata_to_platdata,
        .platdata_auto_alloc_size = sizeof(struct cadence_spi_platdata),
        .priv_auto_alloc_size = sizeof(struct cadence_spi_priv),
-       .per_child_auto_alloc_size = sizeof(struct spi_slave),
        .probe = cadence_spi_probe,
 };
index 700f616ad7630608dc50136f9abf4c148714a7a3..2624844d528566bb7ed786ae06537b4cbf69b777 100644 (file)
@@ -421,6 +421,5 @@ U_BOOT_DRIVER(dw_spi) = {
        .ofdata_to_platdata = dw_spi_ofdata_to_platdata,
        .platdata_auto_alloc_size = sizeof(struct dw_spi_platdata),
        .priv_auto_alloc_size = sizeof(struct dw_spi_priv),
-       .per_child_auto_alloc_size = sizeof(struct spi_slave),
        .probe = dw_spi_probe,
 };
index f078973531c1d960e5635a485e50c42170b45d80..a46d8c187668cff8560eea31c7189c7dfa3b4161 100644 (file)
@@ -425,6 +425,5 @@ U_BOOT_DRIVER(exynos_spi) = {
        .ofdata_to_platdata = exynos_spi_ofdata_to_platdata,
        .platdata_auto_alloc_size = sizeof(struct exynos_spi_platdata),
        .priv_auto_alloc_size = sizeof(struct exynos_spi_priv),
-       .per_child_auto_alloc_size      = sizeof(struct spi_slave),
        .probe  = exynos_spi_probe,
 };
index e717424db83a9ff7dcc15bc57074c5722b66ff11..bad56603ba6809443ee020a4f3459057f166ebf3 100644 (file)
@@ -160,6 +160,5 @@ U_BOOT_DRIVER(spi_sandbox) = {
        .name   = "spi_sandbox",
        .id     = UCLASS_SPI,
        .of_match = sandbox_spi_ids,
-       .per_child_auto_alloc_size      = sizeof(struct spi_slave),
        .ops    = &sandbox_spi_ops,
 };
index 423c98d1a5abad52322ab6324f0df82d61c65eab..9f7d80ee4dada9c46be3251aa690b1a47a0c0e30 100644 (file)
@@ -240,7 +240,6 @@ U_BOOT_DRIVER(soft_spi) = {
        .ofdata_to_platdata = soft_spi_ofdata_to_platdata,
        .platdata_auto_alloc_size = sizeof(struct soft_spi_platdata),
        .priv_auto_alloc_size = sizeof(struct soft_spi_priv),
-       .per_child_auto_alloc_size      = sizeof(struct spi_slave),
        .probe  = soft_spi_probe,
        .child_pre_probe        = soft_spi_child_pre_probe,
 };
index 35756ad784e94d5e01d47b06311622d83d8f2ec7..e5dfb300fa1ed88e908c4dcd6b28a9cbd4d03315 100644 (file)
@@ -348,6 +348,7 @@ UCLASS_DRIVER(spi) = {
        .post_bind      = spi_post_bind,
        .post_probe     = spi_post_probe,
        .per_device_auto_alloc_size = sizeof(struct dm_spi_bus),
+       .per_child_auto_alloc_size = sizeof(struct spi_slave),
 };
 
 UCLASS_DRIVER(spi_generic) = {
index 2d97625fba73b81dcb8a2ba2d55d5e1d5eef0bcb..53ff9ea22105353180159203def640905b5fecf8 100644 (file)
@@ -407,6 +407,5 @@ U_BOOT_DRIVER(tegra114_spi) = {
        .ofdata_to_platdata = tegra114_spi_ofdata_to_platdata,
        .platdata_auto_alloc_size = sizeof(struct tegra_spi_platdata),
        .priv_auto_alloc_size = sizeof(struct tegra114_spi_priv),
-       .per_child_auto_alloc_size      = sizeof(struct spi_slave),
        .probe  = tegra114_spi_probe,
 };
index 7d0d0f37fc70a7f5f5da821b2af8589bf59ac7a1..78c74cdf37fe095d8efa34c26ab5df0093e305bd 100644 (file)
@@ -348,6 +348,5 @@ U_BOOT_DRIVER(tegra20_sflash) = {
        .ofdata_to_platdata = tegra20_sflash_ofdata_to_platdata,
        .platdata_auto_alloc_size = sizeof(struct tegra_spi_platdata),
        .priv_auto_alloc_size = sizeof(struct tegra20_sflash_priv),
-       .per_child_auto_alloc_size      = sizeof(struct spi_slave),
        .probe  = tegra20_sflash_probe,
 };
index 213fa5f7939a848889e0168d1991040dd9830a61..597d6ad5ccecb8e36818bb6d2d555c2f3b14294f 100644 (file)
@@ -361,6 +361,5 @@ U_BOOT_DRIVER(tegra30_spi) = {
        .ofdata_to_platdata = tegra30_spi_ofdata_to_platdata,
        .platdata_auto_alloc_size = sizeof(struct tegra_spi_platdata),
        .priv_auto_alloc_size = sizeof(struct tegra30_spi_priv),
-       .per_child_auto_alloc_size      = sizeof(struct spi_slave),
        .probe  = tegra30_spi_probe,
 };