summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorAndy Shevchenko2019-06-15 19:47:37 +0200
committerMark Brown2019-06-17 14:49:56 +0200
commit36f34737ff48f66c8a19b8788311e4b40d4adf80 (patch)
tree65c963160f587a526ec06c4d2c0b29b4be2fafde /include/linux/spi
parentspi/acpi: enumerate all SPI slaves in the namespace (diff)
downloadkernel-qcow2-linux-36f34737ff48f66c8a19b8788311e4b40d4adf80.tar.gz
kernel-qcow2-linux-36f34737ff48f66c8a19b8788311e4b40d4adf80.tar.xz
kernel-qcow2-linux-36f34737ff48f66c8a19b8788311e4b40d4adf80.zip
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>
Diffstat (limited to 'include/linux/spi')
-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)
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,