aboutsummaryrefslogtreecommitdiff
path: root/test/dm/bus.c
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2020-09-11 13:43:35 +0530
committerTom Rini <trini@konsulko.com>2020-09-30 11:55:22 -0400
commit88e6a60e4aeed2fec059e513572d191ce9387b07 (patch)
tree8999b75b67b284c0130e1ebd87443801605ac2ac /test/dm/bus.c
parentd4b722e3a85f3a5704501f3a71faa43db1979209 (diff)
downloadu-boot-88e6a60e4aeed2fec059e513572d191ce9387b07.zip
u-boot-88e6a60e4aeed2fec059e513572d191ce9387b07.tar.gz
u-boot-88e6a60e4aeed2fec059e513572d191ce9387b07.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/bus.c b/test/dm/bus.c
index 865e8bd..27b7266 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;