blob: 9e3e70f78ae64c4077917d330923d9868e290cfc [file] [log] [blame]
Grant Likely284b0182008-05-16 11:37:09 -06001/*
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
9#ifndef __LINUX_OF_SPI_H
10#define __LINUX_OF_SPI_H
11
Grant Likely284b0182008-05-16 11:37:09 -060012#include <linux/spi/spi.h>
13
Anatolij Gustschin12b15e82010-07-27 22:35:58 +020014#if defined(CONFIG_OF_SPI) || defined(CONFIG_OF_SPI_MODULE)
15extern void of_register_spi_devices(struct spi_master *master);
16#else
17static inline void of_register_spi_devices(struct spi_master *master)
18{
19 return;
20}
21#endif /* CONFIG_OF_SPI */
Grant Likely284b0182008-05-16 11:37:09 -060022
23#endif /* __LINUX_OF_SPI */