aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of_spi.h')
-rw-r--r--include/linux/of_spi.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/of_spi.h b/include/linux/of_spi.h
new file mode 100644
index 00000000..9e3e70f7
--- /dev/null
+++ b/include/linux/of_spi.h
@@ -0,0 +1,23 @@
+/*
+ * 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
+
+#include <linux/spi/spi.h>
+
+#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 */
+
+#endif /* __LINUX_OF_SPI */