OSDN Git Service

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)
commit36f34737ff48f66c8a19b8788311e4b40d4adf80
tree65c963160f587a526ec06c4d2c0b29b4be2fafde
parent4c3c59544f33e97cf8557f27e05a9904ead16363
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>
include/linux/spi/spi.h