spi: Add a prototype for exported spi_set_cs_timing()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 15 Jun 2019 17:47:37 +0000 (20:47 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jun 2019 12:49:56 +0000 (13:49 +0100)
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>
include/linux/spi/spi.h

index d0c5ba746e01a7f6f1da33a36ada4f55f72d9993..0ec11f2911af1323ab778aabb19d0311a641a784 100644 (file)
@@ -980,6 +980,8 @@ static inline void spi_message_free(struct spi_message *m)
        kfree(m);
 }
 
+extern void spi_set_cs_timing(struct spi_device *spi, u8 setup, u8 hold, u8 inactive_dly);
+
 extern int spi_setup(struct spi_device *spi);
 extern int spi_async(struct spi_device *spi, struct spi_message *message);
 extern int spi_async_locked(struct spi_device *spi,