]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] SPI: add per transfer wordsize and speed parameter
authorImre Deak <imre.deak@nokia.com>
Fri, 12 May 2006 11:53:58 +0000 (04:53 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 12 May 2006 11:53:58 +0000 (04:53 -0700)
commit080fa354b5e191c3b21b3e88268bc231181d6eaa
tree65dc5612c16a047b55289850179cb064193dfb0d
parentb4b7764191c3a718582d978452c08218af76c8cf
[PATCH] SPI: add per transfer wordsize and speed parameter

Some protocols (like one for some bitmap displays) require different clock
speed or word size settings for each transfer in an SPI message. This adds
those parameters to struct spi_transfer.  They are to be used when they are
nonzero; otherwise the defaults from spi_device are to be used.

The patch also adds a setup_transfer callback to spi_bitbang, uses it for
messages that use those overrides, and implements it so that the pure
bitbanging code can help resolve any questions about how it should work.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/spi/spi_bitbang.c
include/linux/spi/spi.h
include/linux/spi/spi_bitbang.h