linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] iio: Fix mag3110 scan_type
@ 2013-10-29  0:59 Peter Meerwald
  2013-10-29  0:59 ` [PATCH 2/4] iio: Fix mag3110 Kconfig dependencies Peter Meerwald
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Peter Meerwald @ 2013-10-29  0:59 UTC (permalink / raw)
  To: linux-iio; +Cc: Peter Meerwald

last argument of IIO_ST is shift, not endianness

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
---
 drivers/iio/magnetometer/mag3110.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/iio/magnetometer/mag3110.c b/drivers/iio/magnetometer/mag3110.c
index 783c5b4..becf544 100644
--- a/drivers/iio/magnetometer/mag3110.c
+++ b/drivers/iio/magnetometer/mag3110.c
@@ -250,7 +250,12 @@ done:
 	.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SAMP_FREQ) | \
 		BIT(IIO_CHAN_INFO_SCALE), \
 	.scan_index = idx, \
-	.scan_type = IIO_ST('s', 16, 16, IIO_BE), \
+	.scan_type = { \
+		.sign = 's', \
+		.realbits = 16, \
+		.storagebits = 16, \
+		.endianness = IIO_BE, \
+	}, \
 }
 
 static const struct iio_chan_spec mag3110_channels[] = {
-- 
1.8.4.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/4] iio: Fix mag3110 Kconfig dependencies
  2013-10-29  0:59 [PATCH 1/4] iio: Fix mag3110 scan_type Peter Meerwald
@ 2013-10-29  0:59 ` Peter Meerwald
  2013-11-09 12:15   ` Jonathan Cameron
  2013-10-29  0:59 ` [PATCH 3/4] iio: Fix tcs3472 " Peter Meerwald
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Peter Meerwald @ 2013-10-29  0:59 UTC (permalink / raw)
  To: linux-iio; +Cc: Peter Meerwald

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
---
 drivers/iio/magnetometer/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/iio/magnetometer/Kconfig b/drivers/iio/magnetometer/Kconfig
index 0cf0963..d86d226 100644
--- a/drivers/iio/magnetometer/Kconfig
+++ b/drivers/iio/magnetometer/Kconfig
@@ -19,6 +19,8 @@ config AK8975
 config MAG3110
 	tristate "Freescale MAG3110 3-Axis Magnetometer"
 	depends on I2C
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
 	help
 	  Say yes here to build support for the Freescale MAG3110 3-Axis
 	  magnetometer.
-- 
1.8.4.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/4] iio: Fix tcs3472 Kconfig dependencies
  2013-10-29  0:59 [PATCH 1/4] iio: Fix mag3110 scan_type Peter Meerwald
  2013-10-29  0:59 ` [PATCH 2/4] iio: Fix mag3110 Kconfig dependencies Peter Meerwald
@ 2013-10-29  0:59 ` Peter Meerwald
  2013-11-09 12:16   ` Jonathan Cameron
  2013-10-29  0:59 ` [PATCH 4/4] staging:iio: Fix hmc5843 " Peter Meerwald
  2013-11-09 12:15 ` [PATCH 1/4] iio: Fix mag3110 scan_type Jonathan Cameron
  3 siblings, 1 reply; 8+ messages in thread
From: Peter Meerwald @ 2013-10-29  0:59 UTC (permalink / raw)
  To: linux-iio; +Cc: Peter Meerwald

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
---
 drivers/iio/light/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/iio/light/Kconfig b/drivers/iio/light/Kconfig
index 5e60be4..f0035db 100644
--- a/drivers/iio/light/Kconfig
+++ b/drivers/iio/light/Kconfig
@@ -81,6 +81,8 @@ config SENSORS_LM3533
 config TCS3472
 	tristate "TAOS TCS3472 color light-to-digital converter"
 	depends on I2C
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
 	help
 	 If you say yes here you get support for the TAOS TCS3472
 	 family of color light-to-digital converters with IR filter.
-- 
1.8.4.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 4/4] staging:iio: Fix hmc5843 Kconfig dependencies
  2013-10-29  0:59 [PATCH 1/4] iio: Fix mag3110 scan_type Peter Meerwald
  2013-10-29  0:59 ` [PATCH 2/4] iio: Fix mag3110 Kconfig dependencies Peter Meerwald
  2013-10-29  0:59 ` [PATCH 3/4] iio: Fix tcs3472 " Peter Meerwald
@ 2013-10-29  0:59 ` Peter Meerwald
  2013-11-09 12:16   ` Jonathan Cameron
  2013-11-09 12:15 ` [PATCH 1/4] iio: Fix mag3110 scan_type Jonathan Cameron
  3 siblings, 1 reply; 8+ messages in thread
From: Peter Meerwald @ 2013-10-29  0:59 UTC (permalink / raw)
  To: linux-iio; +Cc: Peter Meerwald

trigger / buffer handling was introduced in changeset
cb9b9a82 staging:iio:hmc5843: Add trigger handling

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
---
 drivers/staging/iio/magnetometer/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/staging/iio/magnetometer/Kconfig b/drivers/staging/iio/magnetometer/Kconfig
index a3ea69e..34634da 100644
--- a/drivers/staging/iio/magnetometer/Kconfig
+++ b/drivers/staging/iio/magnetometer/Kconfig
@@ -6,6 +6,8 @@ menu "Magnetometer sensors"
 config SENSORS_HMC5843
 	tristate "Honeywell HMC5843/5883/5883L 3-Axis Magnetometer"
 	depends on I2C
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
 	help
 	  Say Y here to add support for the Honeywell HMC5843, HMC5883 and
 	  HMC5883L 3-Axis Magnetometer (digital compass).
-- 
1.8.4.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/4] iio: Fix mag3110 scan_type
  2013-10-29  0:59 [PATCH 1/4] iio: Fix mag3110 scan_type Peter Meerwald
                   ` (2 preceding siblings ...)
  2013-10-29  0:59 ` [PATCH 4/4] staging:iio: Fix hmc5843 " Peter Meerwald
@ 2013-11-09 12:15 ` Jonathan Cameron
  3 siblings, 0 replies; 8+ messages in thread
From: Jonathan Cameron @ 2013-11-09 12:15 UTC (permalink / raw)
  To: Peter Meerwald, linux-iio

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/29/13 00:59, Peter Meerwald wrote:
> last argument of IIO_ST is shift, not endianness
> 
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
applied to the fixes-togreg branch of iio.git

Hmm.  Really should finish off the removal of that Macro at some point.
When I originally introduced that Arnd Bergman said it was a bad
idea.  How right he was ;)
> --- drivers/iio/magnetometer/mag3110.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/magnetometer/mag3110.c b/drivers/iio/magnetometer/mag3110.c index 783c5b4..becf544 100644 
> --- a/drivers/iio/magnetometer/mag3110.c +++ b/drivers/iio/magnetometer/mag3110.c @@ -250,7 +250,12 @@ done: 
> .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SAMP_FREQ) | \ BIT(IIO_CHAN_INFO_SCALE), \ .scan_index = idx, \ -
> .scan_type = IIO_ST('s', 16, 16, IIO_BE), \ +	.scan_type = { \ +		.sign = 's', \ +		.realbits = 16, \ +
> .storagebits = 16, \ +		.endianness = IIO_BE, \ +	}, \ }
> 
> static const struct iio_chan_spec mag3110_channels[] = {
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSfidbAAoJEFSFNJnE9BaIhYUP/3rg0WHJIcuPWP30rT46W1DJ
7EwLkyy25UlfvUmiOqblFit79fqM7ezidAuvGhTJP36H00sMRFLuh0gMCCy2qISF
yKxyj2RfxedQ0AZO9cJFjDc133rSbhhPeyKgtg5jEwHLLSyc5YSVR173PMDa7g90
xuRPwQxIYlBwxwuY2u22nE/L7DeEnrBwVGK1HtHnc2SsWTTCXKekftILtaaqXlko
3SBUwp/zV3TmD2IEH/CYLoquabgt5jY9A3Wdlxw7M3jYdfsUTbJrgJIsDbbviH+E
EhKopNcASnkK7ToI2X/wp2EoQUyGKn392PwnPfHwKhAQ7/D0E9G/DAhK6FIZHvtv
aDSPQ5FRUWJft9cLWT3IjzsmHswjXsqCuTsFur5YI4AYaibslx78Isyu2nNtSMmj
hujVNOvGklnmUygEMhUd4T1D7bt5c2x/7IzCFfUvJo+bywhI0Zxm/92PikToROJu
pgBjhRzCwwnW/GYp7UOshTUFuG0oQvZlo2x0OQDT6fAPTZexVx2fuJzRIjF8hBVw
6E3c/jro0p0fvjWlYgW1H1SaNPiQ8ORP5EQNuGqoympZQSpy2fOnqPtm2gi3DH7C
IVzXez37axNPDtyIP20JyUCCOMHdWjMUOgrYCdPFY9t+M4apXVSqzw9Y6XVhkdI6
YaVAeFlvGfm7b8ktLPBT
=CDMK
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/4] iio: Fix mag3110 Kconfig dependencies
  2013-10-29  0:59 ` [PATCH 2/4] iio: Fix mag3110 Kconfig dependencies Peter Meerwald
@ 2013-11-09 12:15   ` Jonathan Cameron
  0 siblings, 0 replies; 8+ messages in thread
From: Jonathan Cameron @ 2013-11-09 12:15 UTC (permalink / raw)
  To: Peter Meerwald, linux-iio

On 10/29/13 00:59, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Applied to the togreg branch of iio.git

Thanks,

> ---
>  drivers/iio/magnetometer/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/iio/magnetometer/Kconfig b/drivers/iio/magnetometer/Kconfig
> index 0cf0963..d86d226 100644
> --- a/drivers/iio/magnetometer/Kconfig
> +++ b/drivers/iio/magnetometer/Kconfig
> @@ -19,6 +19,8 @@ config AK8975
>  config MAG3110
>  	tristate "Freescale MAG3110 3-Axis Magnetometer"
>  	depends on I2C
> +	select IIO_BUFFER
> +	select IIO_TRIGGERED_BUFFER
>  	help
>  	  Say yes here to build support for the Freescale MAG3110 3-Axis
>  	  magnetometer.
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/4] iio: Fix tcs3472 Kconfig dependencies
  2013-10-29  0:59 ` [PATCH 3/4] iio: Fix tcs3472 " Peter Meerwald
@ 2013-11-09 12:16   ` Jonathan Cameron
  0 siblings, 0 replies; 8+ messages in thread
From: Jonathan Cameron @ 2013-11-09 12:16 UTC (permalink / raw)
  To: Peter Meerwald, linux-iio

On 10/29/13 00:59, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Applied to the fixes-togreg branch of iio.git

Thanks,
> ---
>  drivers/iio/light/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/iio/light/Kconfig b/drivers/iio/light/Kconfig
> index 5e60be4..f0035db 100644
> --- a/drivers/iio/light/Kconfig
> +++ b/drivers/iio/light/Kconfig
> @@ -81,6 +81,8 @@ config SENSORS_LM3533
>  config TCS3472
>  	tristate "TAOS TCS3472 color light-to-digital converter"
>  	depends on I2C
> +	select IIO_BUFFER
> +	select IIO_TRIGGERED_BUFFER
>  	help
>  	 If you say yes here you get support for the TAOS TCS3472
>  	 family of color light-to-digital converters with IR filter.
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 4/4] staging:iio: Fix hmc5843 Kconfig dependencies
  2013-10-29  0:59 ` [PATCH 4/4] staging:iio: Fix hmc5843 " Peter Meerwald
@ 2013-11-09 12:16   ` Jonathan Cameron
  0 siblings, 0 replies; 8+ messages in thread
From: Jonathan Cameron @ 2013-11-09 12:16 UTC (permalink / raw)
  To: Peter Meerwald, linux-iio

On 10/29/13 00:59, Peter Meerwald wrote:
> trigger / buffer handling was introduced in changeset
> cb9b9a82 staging:iio:hmc5843: Add trigger handling
> 
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Applied to the fixes-togreg branch of iio.git

Thanks
> ---
>  drivers/staging/iio/magnetometer/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/staging/iio/magnetometer/Kconfig b/drivers/staging/iio/magnetometer/Kconfig
> index a3ea69e..34634da 100644
> --- a/drivers/staging/iio/magnetometer/Kconfig
> +++ b/drivers/staging/iio/magnetometer/Kconfig
> @@ -6,6 +6,8 @@ menu "Magnetometer sensors"
>  config SENSORS_HMC5843
>  	tristate "Honeywell HMC5843/5883/5883L 3-Axis Magnetometer"
>  	depends on I2C
> +	select IIO_BUFFER
> +	select IIO_TRIGGERED_BUFFER
>  	help
>  	  Say Y here to add support for the Honeywell HMC5843, HMC5883 and
>  	  HMC5883L 3-Axis Magnetometer (digital compass).
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-11-09 11:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29  0:59 [PATCH 1/4] iio: Fix mag3110 scan_type Peter Meerwald
2013-10-29  0:59 ` [PATCH 2/4] iio: Fix mag3110 Kconfig dependencies Peter Meerwald
2013-11-09 12:15   ` Jonathan Cameron
2013-10-29  0:59 ` [PATCH 3/4] iio: Fix tcs3472 " Peter Meerwald
2013-11-09 12:16   ` Jonathan Cameron
2013-10-29  0:59 ` [PATCH 4/4] staging:iio: Fix hmc5843 " Peter Meerwald
2013-11-09 12:16   ` Jonathan Cameron
2013-11-09 12:15 ` [PATCH 1/4] iio: Fix mag3110 scan_type Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).