commit | 16cc79ce4ce131dfd3b52653e2227d9389cefa9f | [log] [tgz] |
---|---|---|
author | Michael Polyntsov <michael.polyntsov@iopsys.eu> | Wed Jul 31 08:11:29 2024 +0400 |
committer | Tom Rini <trini@konsulko.com> | Thu Aug 15 11:28:47 2024 -0600 |
tree | bc54818b3a4ea9f75ee24a4bb15c75d2825d2b41 | |
parent | 7539fe1a119e7f33dd4a442f3c639f90dcd1652d [diff] |
spi: soft_spi: Parse cs-gpios only if num-chipselects is not <0> Some boards don't have chipselect lines for leds so cs-gpios is not specified in the dts leading to probing error. Fix it by making behavior similar to the one in Linux, parse num-chipselects and if it is zero, ignore cs-gpios. Signed-off-by: Michael Polyntsov <michael.polyntsov@iopsys.eu> Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>