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)
commit671c3bf50ae498dc12aef6c70abe5cfa066b1348
treed94c194f87cd3d54738e5d05e9e944f9bebede70
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
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