Blame view

include/linux/of_spi.h 528 Bytes
284b01897   Grant Likely   spi: Add OF bindi...
1
2
3
4
5
6
7
8
9
10
  /*
   * OpenFirmware SPI support routines
   * Copyright (C) 2008 Secret Lab Technologies Ltd.
   *
   * Support routines for deriving SPI device attachments from the device
   * tree.
   */
  
  #ifndef __LINUX_OF_SPI_H
  #define __LINUX_OF_SPI_H
284b01897   Grant Likely   spi: Add OF bindi...
11
  #include <linux/spi/spi.h>
12b15e832   Anatolij Gustschin   of/spi: call of_r...
12
13
14
15
16
17
18
19
  #if defined(CONFIG_OF_SPI) || defined(CONFIG_OF_SPI_MODULE)
  extern void of_register_spi_devices(struct spi_master *master);
  #else
  static inline void of_register_spi_devices(struct spi_master *master)
  {
  	return;
  }
  #endif /* CONFIG_OF_SPI */
284b01897   Grant Likely   spi: Add OF bindi...
20
21
  
  #endif /* __LINUX_OF_SPI */