of_spi.h 528 B

123456789101112131415161718192021222324
  1. /*
  2. * OpenFirmware SPI support routines
  3. * Copyright (C) 2008 Secret Lab Technologies Ltd.
  4. *
  5. * Support routines for deriving SPI device attachments from the device
  6. * tree.
  7. */
  8. #ifndef __LINUX_OF_SPI_H
  9. #define __LINUX_OF_SPI_H
  10. #include <linux/spi/spi.h>
  11. #if defined(CONFIG_OF_SPI) || defined(CONFIG_OF_SPI_MODULE)
  12. extern void of_register_spi_devices(struct spi_master *master);
  13. #else
  14. static inline void of_register_spi_devices(struct spi_master *master)
  15. {
  16. return;
  17. }
  18. #endif /* CONFIG_OF_SPI */
  19. #endif /* __LINUX_OF_SPI */