summaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2017-07-08 11:41:18 +0300
committerMark Brown <broonie@kernel.org>2017-07-17 14:09:52 +0300
commit676a4e3bab445d53fca4756865e2c0e2a87c38d6 (patch)
treed0852607196169bbd483ec63564fd8e73cea496a /tools/perf/util/c++/clang.cpp
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff)
downloadlinux-676a4e3bab445d53fca4756865e2c0e2a87c38d6.tar.xz
spi: pxa2xx: Only claim CS GPIOs when the slave device is created
Avoid hogging chip select GPIOs just because they are listed for the master. They might be mulitplexed and, if no slave device is attached, used for different purposes. Moreover, this strategy avoids having to allocate a cs_gpiods structure. Tested on the IOT2000 where the second SPI bus is connected to an Arduino-compatible connector and multiplexed between SPI, GPIO and PWM usage. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions