dtoc: Generate uclass devices

Add support for generating a file containing uclass instances. This avoids
the need to create these at run time.

Update a test uclass to include a 'priv_auto' member, to increase test
coverage.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2021-02-03 06:01:20 -07:00
parent 9763e4eb93
commit ea74c95103
4 changed files with 250 additions and 13 deletions

View File

@@ -71,6 +71,11 @@ struct dm_test_priv {
int uclass_postp;
};
/* struct dm_test_uc_priv - private data for the testdrv uclass */
struct dm_test_uc_priv {
int dummy;
};
/**
* struct dm_test_perdev_class_priv - private per-device data for test uclass
*/