summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-fsl-lib.h
diff options
context:
space:
mode:
authorAndreas Larsson <andreas@gaisler.com>2013-02-15 19:52:23 +0400
committerGrant Likely <grant.likely@secretlab.ca>2013-04-07 13:07:55 +0400
commitb48c4e3c944e8c52dcb0f477e9d80da045c7cab4 (patch)
treeeff07b425dbacd77730328b7ca8cdd69670ea052 /drivers/spi/spi-fsl-lib.h
parentf482cd0ff506cd74c75edceec4b737c46c60cb12 (diff)
downloadlinux-b48c4e3c944e8c52dcb0f477e9d80da045c7cab4.tar.xz
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.h5
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 {
unsigned int flags;
+#ifdef CONFIG_SPI_FSL_SPI
+ void (*set_shifts)(u32 *rx_shift, u32 *tx_shift,
+ int bits_per_word, int msb_first);
+#endif
+
struct workqueue_struct *workqueue;
struct work_struct work;