diff options
| author | Alexandru Ardelean <[email protected]> | 2019-09-26 13:51:35 +0300 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2019-10-15 11:44:10 +0100 |
| commit | 6c613f68aabf33385c01e949204ac5ed30887161 (patch) | |
| tree | 7c1d71fe3b8d7f6c63453a873c952c5719934895 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | ec3fa72fa8404128771a095d5a56b738752ba9ff (diff) | |
spi: core,atmel: convert `word_delay_usecs` -> `word_delay` for spi_device
This change does a conversion from the `word_delay_usecs` -> `word_delay`
for the `spi_device` struct.
This allows users to specify inter-word delays in other unit types
(nano-seconds or clock cycles), depending on how users want.
The Atmel SPI driver is the only current user of the `word_delay_usecs`
field (from the `spi_device` struct).
So, it needed a slight conversion to use the `word_delay` as an `spi_delay`
struct.
In SPI core, the only required mechanism is to update the `word_delay`
information per `spi_transfer`. This requires a bit more logic than before,
because it needs that both delays be converted to a common unit
(nano-seconds) for comparison.
Signed-off-by: Alexandru Ardelean <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions