summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorFranck Jullien <franck.jullien@gmail.com>2011-07-06 00:14:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-07-06 10:25:39 +0200
commit4c35079c1cc05159f31042686dd74e390fd55986 (patch)
tree24505e639c4e9c81892a918aaea8701f64416321 /drivers/spi/spi.c
parente6c03f01bf7da74f4d846efb3e014f053ace92bd (diff)
downloadbarebox-4c35079c1cc05159f31042686dd74e390fd55986.tar.gz
barebox-4c35079c1cc05159f31042686dd74e390fd55986.tar.xz
spi: add bits_per_word to proxy structure
During the creation of a new spi device, we need to have the possiblility to give the bits_per_word value to master->setup. As a matter of fact, spi master could check the spi device bits_per_word and compare this value against its capabilities. Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r--drivers/spi/spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 64568976b2..5f3272b618 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -75,6 +75,7 @@ struct spi_device *spi_new_device(struct spi_master *master,
proxy->chip_select = chip->chip_select;
proxy->max_speed_hz = chip->max_speed_hz;
proxy->mode = chip->mode;
+ proxy->bits_per_word = chip->bits_per_word;
proxy->dev.platform_data = chip->platform_data;
strcpy(proxy->dev.name, chip->name);
proxy->dev.type_data = proxy;