summaryrefslogtreecommitdiffstats
path: root/test/dm/pwm.c
Commit message (Collapse)AuthorAgeFilesLines
* test: pwm: Add a check that dev is not NULLSimon Glass2017-06-121-0/+1
| | | | | | | | | | We know that uclass_get_device() does not return NULL for dev when it succeeds but coverity does not. Add an extra check to hopefully keep it happy. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Coverity (CID: 161690) Fixes: 43b4156 (dm: sandbox: pwm: Add a basic pwm test)
* dm: sandbox: pwm: add test for pwm_set_invert()Kever Yang2017-05-101-0/+1
| | | | | | | | | 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>
* dm: sandbox: pwm: Add a basic pwm testSimon Glass2017-04-271-0/+32
Unfortunately a test for the PWM uclass was not included when it was submitted. This was noticed when trying to add more functionality: http://patchwork.ozlabs.org/patch/748172/ Add a simple test to get us started. Signed-off-by: Simon Glass <sjg@chromium.org>