summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-uclass.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-01-25 08:27:07 -0700
committerSimon Glass <sjg@chromium.org>2015-01-29 17:09:55 -0700
commit19a25f672c6aa1a9a9b94c0ffbfda3e8246d1a19 (patch)
treece01b789ebf4dd2a789a06cdc148a30724ea3e9e /drivers/spi/spi-uclass.c
parentdac8db2ce66944828e441cccf25703b262a256cd (diff)
downloadblackbird-obmc-uboot-19a25f672c6aa1a9a9b94c0ffbfda3e8246d1a19.tar.gz
blackbird-obmc-uboot-19a25f672c6aa1a9a9b94c0ffbfda3e8246d1a19.zip
dm: spi: Move the per-child data size to the uclass
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>
Diffstat (limited to 'drivers/spi/spi-uclass.c')
-rw-r--r--drivers/spi/spi-uclass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c
index 35756ad784..e5dfb300fa 100644
--- a/drivers/spi/spi-uclass.c
+++ b/drivers/spi/spi-uclass.c
@@ -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) = {
OpenPOWER on IntegriCloud