commit | bb919a55de4a995e7102e4ba1e75d05d959754b9 | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Mon Sep 09 06:00:03 2019 -0700 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Mon Jan 27 22:27:21 2020 +0530 |
tree | 4b0289ac68d0b18af3ab672bbbb346a67495b618 | |
parent | 9741e7307c014a50bf6fb8db49489cd56a1ba8f8 [diff] |
test: dm: spi: Fix sandbox dm_test_spi_find() Per sandbox_cs_info(), sandbox spi controller only supports chip select 0. Current test case tries to locate devices on chip select 1, and any call to spi_get_bus_and_cs() or spi_cs_info() with cs number 1 should not return 0. This updates the test case to handle it correctly. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>