[PATCH] spi: add spi_set_drvdata() and spi_get_drvdata()
authorBen Dooks <ben@fluff.org>
Mon, 12 Feb 2007 08:52:41 +0000 (00:52 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:30 +0000 (09:48 -0800)
commit9b40ff4d729f4a7a9f832c67aa5de0dfa8ad45c0
treee5ee3959e846f220a4d6a96c241a201e459b1bbb
parent69c202afa8ad6d6c1c673d8f9d47b43a0a3604e5
[PATCH] spi: add spi_set_drvdata() and spi_get_drvdata()

Add wrappers for getting and setting the driver data using spi_device
instead of using dev_{get|set}_drvdata with &spi->dev, to mirror the
platform_{get|set}_drvdata.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/spi/spi-summary
include/linux/spi/spi.h