OSDN Git Service

spi: Convert to use predefined time multipliers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 May 2021 13:11:20 +0000 (16:11 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 11 May 2021 09:06:52 +0000 (10:06 +0100)
commit86b8bff7e3ac6775113639d88db7448a8b47f0c1
tree920792f737a10d4a6c2c3bad706697a3b460a26c
parentd6e58e379610799ea53419eb8b08e061aa27fc4c
spi: Convert to use predefined time multipliers

We have a lot of hard coded values in nanoseconds or other units.
Use predefined constants to make it more clear.

While at it, add or amend comments in the corresponding functions.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210510131120.49253-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c