diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 12:05:35 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 12:05:35 -0400 |
| commit | d9089c296bdd82e6c1b7f82d04c11b5decde75e7 (patch) | |
| tree | 6c2a3b8bc1b6f8b5930f6a20b099511dd19aa4ba /include/linux/spi/spi.h | |
| parent | bda426f5310ffddcd463fe20f352609e84989514 (diff) | |
| parent | 00df438e89a9003895948170e1abf64dd4665872 (diff) | |
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (25 commits)
powerpc: Disable 64K hugetlb support when doing 64K SPU mappings
powerpc/powermac: Fixup default serial port device for pmac_zilog
powerpc/powermac: Use sane default baudrate for SCC debugging
powerpc/mm: Implement _PAGE_SPECIAL & pte_special() for 64-bit
powerpc: Show processor cache information in sysfs
powerpc: Make core id information available to userspace
powerpc: Make core sibling information available to userspace
powerpc/vio: More fallout from dma_mapping_error API change
ibmveth: Fix multiple errors with dma_mapping_error conversion
powerpc/pseries: Fix CMO sysdev attribute API change fallout
powerpc: Enable tracehook for the architecture
powerpc: Add TIF_NOTIFY_RESUME support for tracehook
powerpc: Add asm/syscall.h with the tracehook entry points
powerpc: Make syscall tracing use tracehook.h helpers
powerpc: Call tracehook_signal_handler() when setting up signal frames
powerpc: Update cpu_sibling_maps dynamically
powerpc: register_cpu_online should be __cpuinit
powerpc: kill useless SMT code in prom_hold_cpus
powerpc: Fix 8xx build failure
powerpc: Fix vio build warnings
...
Diffstat (limited to 'include/linux/spi/spi.h')
| -rw-r--r-- | include/linux/spi/spi.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index a9cc29d46653..4be01bb44377 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
| @@ -778,8 +778,20 @@ spi_register_board_info(struct spi_board_info const *info, unsigned n) | |||
| 778 | * use spi_new_device() to describe each device. You can also call | 778 | * use spi_new_device() to describe each device. You can also call |
| 779 | * spi_unregister_device() to start making that device vanish, but | 779 | * spi_unregister_device() to start making that device vanish, but |
| 780 | * normally that would be handled by spi_unregister_master(). | 780 | * normally that would be handled by spi_unregister_master(). |
| 781 | * | ||
| 782 | * You can also use spi_alloc_device() and spi_add_device() to use a two | ||
| 783 | * stage registration sequence for each spi_device. This gives the caller | ||
| 784 | * some more control over the spi_device structure before it is registered, | ||
| 785 | * but requires that caller to initialize fields that would otherwise | ||
| 786 | * be defined using the board info. | ||
| 781 | */ | 787 | */ |
| 782 | extern struct spi_device * | 788 | extern struct spi_device * |
| 789 | spi_alloc_device(struct spi_master *master); | ||
| 790 | |||
| 791 | extern int | ||
| 792 | spi_add_device(struct spi_device *spi); | ||
| 793 | |||
| 794 | extern struct spi_device * | ||
| 783 | spi_new_device(struct spi_master *, struct spi_board_info *); | 795 | spi_new_device(struct spi_master *, struct spi_board_info *); |
| 784 | 796 | ||
| 785 | static inline void | 797 | static inline void |
