diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-06-15 20:47:37 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-17 13:49:56 +0100 |
commit | 36f34737ff48f66c8a19b8788311e4b40d4adf80 (patch) | |
tree | 65c963160f587a526ec06c4d2c0b29b4be2fafde /include/linux/spi | |
parent | 4c3c59544f33e97cf8557f27e05a9904ead16363 (diff) | |
download | linux-stable-36f34737ff48f66c8a19b8788311e4b40d4adf80.tar.gz linux-stable-36f34737ff48f66c8a19b8788311e4b40d4adf80.tar.bz2 linux-stable-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.h | 2 |
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, |