From: Miroslav Ondra Date: Tue, 13 Jul 2021 16:22:47 +0000 (+0200) Subject: Use spi_delay for interframe spaces for kernel>=5.9.0 X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=228da06aa7783aa366b5696fc1be82be3ee67f2f;p=graphit%2Funipi-kernel.git Use spi_delay for interframe spaces for kernel>=5.9.0 --- diff --git a/modules/unipi/src/unipi_spi.c b/modules/unipi/src/unipi_spi.c index 4114a7a..a5beaf4 100644 --- a/modules/unipi/src/unipi_spi.c +++ b/modules/unipi/src/unipi_spi.c @@ -130,7 +130,6 @@ static struct neuronspi_op_buffer UNIPISPI_IDLE_MESSAGE = { #ifdef USE_UNIPI_CPUFREQ_PATCH static struct cpufreq_policy * current_policy = NULL; #endif -#endif static void unipi_spi_set_cs(struct spi_device *spi, bool enable) { @@ -184,6 +183,7 @@ static void unipi_spi_set_cs(struct spi_device *spi, bool enable) #endif } +#endif /************************ * Non-static Functions *