diff mbox series

[v1] spi: Add a prototype for exported spi_set_cs_timing()

Message ID 20190615174737.4868-1-andriy.shevchenko@linux.intel.com (mailing list archive)
State Accepted
Commit 36f34737ff48f66c8a19b8788311e4b40d4adf80
Headers show
Series [v1] spi: Add a prototype for exported spi_set_cs_timing() | expand

Commit Message

Andy Shevchenko June 15, 2019, 5:47 p.m. UTC
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>
---
 include/linux/spi/spi.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index 053abd22ad31..ffe3a13d898b 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -967,6 +967,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,