ARM: S3C64XX: Tidy up common code in s3c64xx_spi_set_info()
authorBen Dooks <ben-linux@fluff.org>
Thu, 21 Jan 2010 04:31:38 +0000 (13:31 +0900)
committerBen Dooks <ben-linux@fluff.org>
Thu, 21 Jan 2010 05:24:52 +0000 (14:24 +0900)
commit75497d96b2094d325594b46d5e5f12b2396c4d51
tree37f8495872006edcb80dcd2b273c8e2c8cdb82e0
parentbd548e5ef21ac2ff18b262a905543d7a2340fb87
ARM: S3C64XX: Tidy up common code in s3c64xx_spi_set_info()

The s3c64xx_spi_set_info() sets one of two platform data structures depending
on which controller is being specified. Change to taking a pointer to the
relevant platform data structure and then having one set of code to place
the data into the area being pointed to.

Cc: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s3c64xx/dev-spi.c