mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:
@ -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) = {
|
||||
|
Reference in New Issue
Block a user