SPI: Add empty spi_register_board_info function when SPI is disabled
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
9e64db6342
commit
fd12d4cd77
|
@ -335,7 +335,16 @@ spi_transfer_del(struct spi_transfer *t)
|
||||||
|
|
||||||
int spi_sync(struct spi_device *spi, struct spi_message *message);
|
int spi_sync(struct spi_device *spi, struct spi_message *message);
|
||||||
|
|
||||||
int spi_register_board_info(struct spi_board_info const *info, int num);
|
|
||||||
int spi_register_master(struct spi_master *master);
|
int spi_register_master(struct spi_master *master);
|
||||||
|
|
||||||
|
#ifdef CONFIG_SPI
|
||||||
|
int spi_register_board_info(struct spi_board_info const *info, int num);
|
||||||
|
#else
|
||||||
|
static inline int spi_register_board_info(struct spi_board_info const *info,
|
||||||
|
int num)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __INCLUDE_SPI_H */
|
#endif /* __INCLUDE_SPI_H */
|
||||||
|
|
Loading…
Reference in New Issue