diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2017-04-24 10:27:52 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-05-10 13:37:21 -0600 |
commit | 5540e25aebee68806012d7f23b19805dbbab7c18 (patch) | |
tree | a8aebb523b0623ad930a1bbdc58b9be635db404d /test/dm | |
parent | 1df7ee573ee68a951fc7b31fd34daec4d1dba4d1 (diff) |
dm: sandbox: pwm: add test for pwm_set_invert()
Add test case for new interface set_invert().
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
Fix typo in subject and build error in sandbox_pwm_set_invert():
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm')
-rw-r--r-- | test/dm/pwm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/dm/pwm.c b/test/dm/pwm.c index 7bdc75af09..f1e38c77dd 100644 --- a/test/dm/pwm.c +++ b/test/dm/pwm.c @@ -23,6 +23,7 @@ static int dm_test_pwm_base(struct unit_test_state *uts) ut_assertok(pwm_set_enable(dev, 1, true)); ut_assertok(pwm_set_enable(dev, 2, true)); ut_asserteq(-ENOSPC, pwm_set_enable(dev, 3, true)); + ut_assertok(pwm_set_invert(dev, 0, true)); ut_assertok(uclass_get_device(UCLASS_PWM, 1, &dev)); ut_asserteq(-ENODEV, uclass_get_device(UCLASS_PWM, 2, &dev)); |