diff options
author | Jean-Jacques Hiblot | 2020-09-11 13:43:35 +0530 |
---|---|---|
committer | Tom Rini | 2020-09-30 11:55:22 -0400 |
commit | 88e6a60e4aeed2fec059e513572d191ce9387b07 (patch) | |
tree | 8999b75b67b284c0130e1ebd87443801605ac2ac /test/dm/bus.c | |
parent | d4b722e3a85f3a5704501f3a71faa43db1979209 (diff) |
test: gpio: Add tests for the managed API
Add a test to verify that GPIOs can be acquired/released using the managed
API. Also check that the GPIOs are released when the consumer device is
removed.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Diffstat (limited to 'test/dm/bus.c')
-rw-r--r-- | test/dm/bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/bus.c b/test/dm/bus.c index 865e8bd9fbe..27b72666457 100644 --- a/test/dm/bus.c +++ b/test/dm/bus.c @@ -120,7 +120,7 @@ UCLASS_DRIVER(testbus) = { /* Test that we can probe for children */ static int dm_test_bus_children(struct unit_test_state *uts) { - int num_devices = 8; + int num_devices = 9; struct udevice *bus; struct uclass *uc; |