Skip to content
Commit 4b060003 authored by Bin Meng's avatar Bin Meng Committed by Jagan Teki
Browse files

dm: spi: Change cs_info op to return -EINVAL for invalid cs num



We need distinguish the following two situations in various SPI APIs:

- given chip select num is invalid
- given chip select num is valid, but no device is attached

Currently -ENODEV is returned for both cases.

For the first case, it's more reasonable to return -EINVAL instead of
-ENODEV for invalid chip select numbers.

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> # SoPine
Reviewed-by: default avatarJagan Teki <jagan@amarulasolutions.com>
parent 4dd520b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment