[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1284135579-13578-2-git-send-email-wellsk40@gmail.com>
Date: Fri, 10 Sep 2010 09:19:35 -0700
From: wellsk40@...il.com
To: linus.walleij@...ricsson.com,
spi-devel-general@...ts.sourceforge.net
Cc: sameo@...ux.intel.com, rabin.vincent@...ricsson.com,
srinidhi.kasagar@...ricsson.com, linux-kernel@...r.kernel.org,
linux@....linux.org.uk, u.kleine-koenig@...gutronix.de,
linux-arm-kernel@...ts.infradead.org, tj@...nel.org,
grant.likely@...retlab.ca, Lukasz.Baj@...to.com,
quentinyang05@...il.com, Kevin Wells <wellsk40@...il.com>
Subject: [PATCH 1/5] mfd/ab8500: Setup SPI transfer for 24 bits
From: Kevin Wells <wellsk40@...il.com>
The data bit transfer size should be part of the driver using the
SPI interface. This was previously setup in the AMBA PL022 driver
from board specific configuration data.
Signed-off-by: Kevin Wells <wellsk40@...il.com>
---
drivers/mfd/ab8500-spi.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/mfd/ab8500-spi.c b/drivers/mfd/ab8500-spi.c
index e1c8b62..01b6d58 100644
--- a/drivers/mfd/ab8500-spi.c
+++ b/drivers/mfd/ab8500-spi.c
@@ -83,6 +83,11 @@ static int __devinit ab8500_spi_probe(struct spi_device *spi)
struct ab8500 *ab8500;
int ret;
+ spi->bits_per_word = 24;
+ ret = spi_setup(spi);
+ if (ret < 0)
+ return ret;
+
ab8500 = kzalloc(sizeof *ab8500, GFP_KERNEL);
if (!ab8500)
return -ENOMEM;
--
1.7.2.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists