aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-06-15 13:47:37 -0400
committerMark Brown <broonie@kernel.org>2019-06-17 08:49:56 -0400
commit36f34737ff48f66c8a19b8788311e4b40d4adf80 (patch)
tree65c963160f587a526ec06c4d2c0b29b4be2fafde
parent4c3c59544f33e97cf8557f27e05a9904ead16363 (diff)
spi: Add a prototype for exported spi_set_cs_timing()
Compiler is not happy about spi_set_cs_timing() prototype. drivers/spi/spi.c:3016:6: warning: no previous prototype for ‘spi_set_cs_timing’ [-Wmissing-prototypes] void spi_set_cs_timing(struct spi_device *spi, u8 setup, u8 hold, ^~~~~~~~~~~~~~~~~ Let's add it to the header. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--include/linux/spi/spi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index d0c5ba746e01..0ec11f2911af 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -980,6 +980,8 @@ static inline void spi_message_free(struct spi_message *m)
980 kfree(m); 980 kfree(m);
981} 981}
982 982
983extern void spi_set_cs_timing(struct spi_device *spi, u8 setup, u8 hold, u8 inactive_dly);
984
983extern int spi_setup(struct spi_device *spi); 985extern int spi_setup(struct spi_device *spi);
984extern int spi_async(struct spi_device *spi, struct spi_message *message); 986extern int spi_async(struct spi_device *spi, struct spi_message *message);
985extern int spi_async_locked(struct spi_device *spi, 987extern int spi_async_locked(struct spi_device *spi,