~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to include/linux/spi/spi.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
581
581
 * Callable only from contexts that can sleep.
582
582
 */
583
583
static inline int
584
 
spi_write(struct spi_device *spi, const u8 *buf, size_t len)
 
584
spi_write(struct spi_device *spi, const void *buf, size_t len)
585
585
{
586
586
        struct spi_transfer     t = {
587
587
                        .tx_buf         = buf,
605
605
 * Callable only from contexts that can sleep.
606
606
 */
607
607
static inline int
608
 
spi_read(struct spi_device *spi, u8 *buf, size_t len)
 
608
spi_read(struct spi_device *spi, void *buf, size_t len)
609
609
{
610
610
        struct spi_transfer     t = {
611
611
                        .rx_buf         = buf,
620
620
 
621
621
/* this copies txbuf and rxbuf data; for small transfers only! */
622
622
extern int spi_write_then_read(struct spi_device *spi,
623
 
                const u8 *txbuf, unsigned n_tx,
624
 
                u8 *rxbuf, unsigned n_rx);
 
623
                const void *txbuf, unsigned n_tx,
 
624
                void *rxbuf, unsigned n_rx);
625
625
 
626
626
/**
627
627
 * spi_w8r8 - SPI synchronous 8 bit write followed by 8 bit read