diff options
author | Andreas Larsson <andreas@gaisler.com> | 2013-02-15 10:52:23 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2013-04-07 05:07:55 -0400 |
commit | b48c4e3c944e8c52dcb0f477e9d80da045c7cab4 (patch) | |
tree | eff07b425dbacd77730328b7ca8cdd69670ea052 /drivers/spi/spi-fsl-lib.h | |
parent | f482cd0ff506cd74c75edceec4b737c46c60cb12 (diff) |
spi/spi-fsl-spi: Move setting non-zero tx and rx shifts to a function accessed by a function pointer
Acked-by: Anton Vorontsov <anton@enomsg.org>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi-fsl-lib.h')
-rw-r--r-- | drivers/spi/spi-fsl-lib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/spi/spi-fsl-lib.h b/drivers/spi/spi-fsl-lib.h index d785595c206e..eae54b666907 100644 --- a/drivers/spi/spi-fsl-lib.h +++ b/drivers/spi/spi-fsl-lib.h | |||
@@ -69,6 +69,11 @@ struct mpc8xxx_spi { | |||
69 | 69 | ||
70 | unsigned int flags; | 70 | unsigned int flags; |
71 | 71 | ||
72 | #ifdef CONFIG_SPI_FSL_SPI | ||
73 | void (*set_shifts)(u32 *rx_shift, u32 *tx_shift, | ||
74 | int bits_per_word, int msb_first); | ||
75 | #endif | ||
76 | |||
72 | struct workqueue_struct *workqueue; | 77 | struct workqueue_struct *workqueue; |
73 | struct work_struct work; | 78 | struct work_struct work; |
74 | 79 | ||