diff options
author | Hubert Feurstein <h.feurstein@gmail.com> | 2011-06-20 23:46:32 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-06-21 13:56:49 +0200 |
commit | 76f46b561974865b1a3abc553ec56c95ee34f9fb (patch) | |
tree | c4927f5e25e775476af8baf5f8a39ded050cf1c5 /include/spi | |
parent | 6d78fe87dc9d34e76cd73dd86ade539ad33f2a66 (diff) | |
download | barebox-76f46b561974865b1a3abc553ec56c95ee34f9fb.tar.gz barebox-76f46b561974865b1a3abc553ec56c95ee34f9fb.tar.xz |
spi: add platform_data pointer to spi_board_info
In the spi layer this pointer will be assigned to the
platform_data pointer of the new spi device, thus it can
be accessed in the drivers 'probe' handler.
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/spi')
-rw-r--r-- | include/spi/spi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/spi/spi.h b/include/spi/spi.h index 8dce8dbd2b..c76f3b7922 100644 --- a/include/spi/spi.h +++ b/include/spi/spi.h @@ -14,8 +14,8 @@ struct spi_board_info { /* mode becomes spi_device.mode, and is essential for chips * where the default of SPI_CS_HIGH = 0 is wrong. */ - u8 mode; - + u8 mode; + void *platform_data; }; /** |