[PATCH] spi: topcliff-pch: Pass correct pointer to free_irq()

2013-05-20 Thread Lars-Peter Clausen
.p; @@ *free_irq@p(...) Signed-off-by: Lars-Peter Clausen --- drivers/spi/spi-topcliff-pch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c index 35f60bd..963e0f3 100644 --- a/drivers/spi/spi-topcliff-pch.c +++ b

Re: [PATCH] SPI: spidev: Add DT compatible string for spidev driver.

2013-04-12 Thread Lars-Peter Clausen
On 04/12/2013 04:16 PM, Martin Fuzzey wrote: > Hi Maxime, > > On 12/04/13 15:30, Maxime Ripard wrote: >> I submitted a similar patch quite some time ago [1], and at the time, this >> patch was found inadequate, and we decided to add the compatible of the >> particular device that we drive through

Re: [PATCH 1/3] spi: Add helper functions for setting up transfers

2013-01-10 Thread Lars-Peter Clausen
On 01/10/2013 09:53 AM, Julia Lawall wrote: >> +@r1@ >> +identifier fn; >> +identifier xfers; >> +@@ >> +fn(...) >> +{ >> +... >> +( >> +struct spi_transfer xfers[...]; >> +| >> +struct spi_transfer xfers[]; >> +) >> +... >> +} > > Can it happen that there would be more than one sp

Re: [PATCH 1/3] spi: Add helper functions for setting up transfers

2013-01-09 Thread Lars-Peter Clausen
On 01/09/2013 08:20 PM, Jonathan Cameron wrote: > On 01/09/2013 05:31 PM, Lars-Peter Clausen wrote: >> Quite often the pattern used for setting up and transferring a synchronous >> SPI >> transaction looks very much like the following: >> >> struc

[PATCH 1/3] spi: Add helper functions for setting up transfers

2013-01-09 Thread Lars-Peter Clausen
pt which can detect such sequences as described above and transform them automatically to use the new helper functions. Signed-off-by: Lars-Peter Clausen --- I'm not entirely happy with names of the two new functions and I'm open for better suggestions. --- include/linux/spi/spi.h

[PATCH 2/3] iio: Use spi_sync_transfer()

2013-01-09 Thread Lars-Peter Clausen
Use the new spi_sync_transfer() helper function instead of open-coding it. Signed-off-by: Lars-Peter Clausen --- drivers/iio/dac/ad5360.c | 7 +-- drivers/iio/dac/ad5421.c | 7 +-- drivers/iio/dac/ad5504.c | 6 +- drivers/iio/dac/ad5686.c | 7

[PATCH 3/3] staging:iio: Use spi_sync_transfer()

2013-01-09 Thread Lars-Peter Clausen
Use the new spi_sync_transfer() helper function instead of open-coding it. Signed-off-by: Lars-Peter Clausen --- drivers/staging/iio/accel/kxsd9.c | 6 +--- drivers/staging/iio/accel/lis3l02dq_core.c | 18 ++-- drivers/staging/iio/accel/sca3000_core.c | 13 ++--- drivers

[PATCH resend] spi: Add support for specifying 3-wire mode via device tree

2012-12-06 Thread Lars-Peter Clausen
This patch allows to specify that a SPI device is connected in 3-wire mode via device tree. Signed-off-by: Lars-Peter Clausen Acked-by: Rob Herring --- Documentation/devicetree/bindings/spi/spi-bus.txt | 2 ++ drivers/spi/spi.c | 2 ++ 2 files changed, 4

Re: [PATCH RFT] spi: spi-xcomm: Fix wrong setting for SPI_XCOMM_SETTINGS_CPHA

2012-12-05 Thread Lars-Peter Clausen
On 12/04/2012 07:27 AM, Axel Lin wrote: > The logic of setting SPI_XCOMM_SETTINGS_CPHA bit is reversed. > > Signed-off-by: Axel Lin > --- > Hi Lars, > The logic of setting SPI_XCOMM_SETTINGS_CPHA bit looks wrong to me. > Can you check if this patch works? > > Thanks, > Axel Hi Axel, Thanks for

[PATCH resend] spi: Add AD-FMCOMMS1-EBZ I2C-SPI bridge driver

2012-07-19 Thread Lars-Peter Clausen
This patch adds support for the I2C-SPI bridge which can be found on the Analog Devices AD-FMCOMMS1-EBZ board. Signed-off-by: Lars-Peter Clausen --- Just a resend of the patch to Mark as he kindly takes care of the SPI subsystem while Grant is busy moving. --- drivers/spi/Kconfig |7

[PATCH] spi: Add support for specifing 3-wire mode via device tree

2012-07-13 Thread Lars-Peter Clausen
This patch allows to specify that a SPI device is connected in 3-wire mode via the device tree. Signed-off-by: Lars-Peter Clausen --- Documentation/devicetree/bindings/spi/spi-bus.txt |2 ++ drivers/spi/spi.c |2 ++ 2 files changed, 4 insertions(+) diff

Re: [PATCH] spi: Add AD-FMCOMMS1-EBZ I2C-SPI bridge driver

2012-06-29 Thread Lars-Peter Clausen
On 05/26/2012 01:07 AM, Grant Likely wrote: > On Mon, 21 May 2012 18:25:38 +0200, Lars-Peter Clausen > wrote: >> This patch adds support for the I2C-SPI bridge which can be found on the >> Analog >> Devices AD-FMCOMMS1-EBZ board. >> >> Signed-off-by: Lars

[PATCH] spi: Add AD-FMCOMMS1-EBZ I2C-SPI bridge driver

2012-05-21 Thread Lars-Peter Clausen
This patch adds support for the I2C-SPI bridge which can be found on the Analog Devices AD-FMCOMMS1-EBZ board. Signed-off-by: Lars-Peter Clausen --- drivers/spi/Kconfig |7 ++ drivers/spi/Makefile|1 + drivers/spi/spi-xcomm.c | 276

Re: [PATCH 3/5] SPI: Add helper macro for spi_driver boilerplate

2011-11-23 Thread Lars-Peter Clausen
On 11/24/2011 01:13 AM, Ben Dooks wrote: > On Wed, Nov 16, 2011 at 10:12:54AM -0700, Grant Likely wrote: >> On Wed, Nov 16, 2011 at 2:13 AM, Lars-Peter Clausen wrote: >>> This patch introduces the module_spi_driver macro which is a convenience >>> macro >>&g

[PATCH 5/5] staging:iio: Use module_spi_driver to register SPI driver

2011-11-16 Thread Lars-Peter Clausen
Use the newly introduced module_spi_driver macro for registering SPI drivers. This allows us to remove a few lines of boilerplate code. Signed-off-by: Lars-Peter Clausen --- drivers/staging/iio/accel/adis16201_core.c | 13 + drivers/staging/iio/accel/adis16203_core.c | 13

[PATCH 4/5] staging:iio: Use module_i2c_driver to register I2C drivers

2011-11-16 Thread Lars-Peter Clausen
Use the newly introduced module_i2c_driver macro for registering I2C drivers. This allows us to remove a few lines of boilerplate code. Signed-off-by: Lars-Peter Clausen --- drivers/staging/iio/adc/ad7291.c| 14 +- drivers/staging/iio/adc/ad799x_core.c

[PATCH 0/5] Generalize module_platform_driver

2011-11-16 Thread Lars-Peter Clausen
candidates. It probably makes sense to merge the first three patches together. The last two can probably, since this is not urgent, wait until the first three have reached mainline. - Lars Lars-Peter Clausen (5): drivercore: Generalize module_platform_driver I2C: Add helper macro for i2c_driver

[PATCH 3/5] SPI: Add helper macro for spi_driver boilerplate

2011-11-16 Thread Lars-Peter Clausen
a few lines of boilerplate code per SPI driver. Signed-off-by: Lars-Peter Clausen --- include/linux/spi/spi.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index bb4f5fb..176fce9 100644 --- a/include/linux

[PATCH 2/5] I2C: Add helper macro for i2c_driver boilerplate

2011-11-16 Thread Lars-Peter Clausen
a few lines of boilerplate code per I2C driver. Signed-off-by: Lars-Peter Clausen --- include/linux/i2c.h | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/include/linux/i2c.h b/include/linux/i2c.h index a81bf6d..7e92854 100644 --- a/include/linux/i2c.h +++ b

[PATCH 1/5] drivercore: Generalize module_platform_driver

2011-11-16 Thread Lars-Peter Clausen
module_platform_driver macro. Signed-off-by: Lars-Peter Clausen --- include/linux/init.h| 21 + include/linux/platform_device.h | 12 ++-- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/include/linux/init.h b/include/linux/init.h index 9146f39