aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/include/mach/spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/spi.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/spi.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/spi.h b/arch/arm/mach-tegra/include/mach/spi.h
new file mode 100644
index 00000000000..171e4007b4b
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/spi.h
@@ -0,0 +1,42 @@
1/*
2 * arch/arm/mach-tegra/include/mach/spi.h
3 *
4 * Copyright (c) 2010, NVIDIA Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21#ifndef __MACH_TEGRA_SPI_H
22#define __MACH_TEGRA_SPI_H
23
24#include <linux/types.h>
25#include <linux/spi/spi.h>
26
27typedef int (*callback)(void *client_data);
28
29/**
30 * register_spi_slave_callback - registers notification callback provided by
31 * the client.
32 * This callback indicate that the controller is all set to receive/transfer
33 * data.
34 * @spi: struct spi_device - refer to linux/spi/spi.h
35 * @func: Callback function
36 * @client_data: Data to be passed in callback
37 * Context: can not sleep
38 */
39int spi_tegra_register_callback(struct spi_device *spi, callback func,
40 void *client_data);
41
42#endif