91565c4068
The current code has the OF binding modifying the platform_data pointer which it must not do, and the common code doesn't really need to use a pdata pointer. This patch eliminates the platform_data references from the common part of the driver in preparation for merging the OF and non-OF versions. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Tested-by: Michal Simek <monstr@monstr.eu>
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/*
|
|
* Xilinx SPI device driver API and platform data header file
|
|
*
|
|
* Copyright (c) 2009 Intel Corporation
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#ifndef _XILINX_SPI_H_
|
|
#define _XILINX_SPI_H_
|
|
|
|
#include <linux/spi/spi.h>
|
|
#include <linux/spi/spi_bitbang.h>
|
|
|
|
#define XILINX_SPI_NAME "xilinx_spi"
|
|
|
|
struct spi_master *xilinx_spi_init(struct device *dev, struct resource *mem,
|
|
u32 irq, s16 bus_num, int num_cs, int little_endian, int bits_per_word);
|
|
|
|
void xilinx_spi_deinit(struct spi_master *master);
|
|
#endif
|