diff options
| author | Praveen Talari <praveen.talari@oss.qualcomm.com> | 2026-02-04 19:28:51 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-02-04 20:37:33 +0300 |
| commit | 50464497b5874b7c2f3ab991cec81e916d40743c (patch) | |
| tree | 8cec37b44a2145c252269b877ece18dade2826ae /scripts/objdiff | |
| parent | 4cc4ace709860c37f7f8019e950380a4694eb101 (diff) | |
| download | linux-50464497b5874b7c2f3ab991cec81e916d40743c.tar.xz | |
spi: geni-qcom: Improve target mode allocation by using proper allocation functions
The current implementation always allocates a host controller and sets the
target flag later when the "spi-slave" device tree property is present.
This approach is suboptimal as it doesn't utilize the dedicated allocation
functions designed for target mode.
Use devm_spi_alloc_target() when "spi-slave" device tree property is
present, otherwise use devm_spi_alloc_host(). This replaces the previous
approach of always allocating a host controller and setting target flag
later.
Signed-off-by: Praveen Talari <praveen.talari@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20260204162854.1206323-2-praveen.talari@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
