]> git.baikalelectronics.ru Git - kernel.git/commit
spi: make spi-max-frequency optional
authorChuanhong Guo <gch981213@gmail.com>
Fri, 6 Mar 2020 08:50:49 +0000 (16:50 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 11 Mar 2020 19:56:06 +0000 (19:56 +0000)
commit2be6364ba630a0991c04958b8b3207d4afb86529
treed94c194f87cd3d54738e5d05e9e944f9bebede70
parent900abd43b6d837ba70928a9ee9599ba3be1d2fb6
spi: make spi-max-frequency optional

We only need a spi-max-frequency when we specifically request a
spi frequency lower than the max speed of spi host.
This property is already documented as optional property and current
host drivers are implemented to operate at highest speed possible
when spi->max_speed_hz is 0.
This patch makes spi-max-frequency an optional property so that
we could just omit it to use max controller speed.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Link: https://lore.kernel.org/r/20200306085052.28258-2-gch981213@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c