* [PATCH] iio: accel: ADIS16209: Fix double registration of in_incli0_index
@ 2011-08-26 11:36 michael.hennerich
2011-08-26 12:00 ` Jonathan Cameron
0 siblings, 1 reply; 4+ messages in thread
From: michael.hennerich @ 2011-08-26 11:36 UTC (permalink / raw)
To: jic23; +Cc: linux-iio, device-drivers-devel, drivers, Michael Hennerich
From: Michael Hennerich <michael.hennerich@analog.com>
iio (null): tried to double register : in_incli0_index
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
---
drivers/staging/iio/accel/adis16209_core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/iio/accel/adis16209_core.c b/drivers/staging/iio/accel/adis16209_core.c
index 183b5c2..8d5f1d5 100644
--- a/drivers/staging/iio/accel/adis16209_core.c
+++ b/drivers/staging/iio/accel/adis16209_core.c
@@ -431,11 +431,11 @@ static struct iio_chan_spec adis16209_channels[] = {
(1 << IIO_CHAN_INFO_SCALE_SEPARATE),
in_aux, ADIS16209_SCAN_AUX_ADC,
IIO_ST('u', 12, 16, 0), 0),
- IIO_CHAN(IIO_INCLI, 0, 1, 0, NULL, 0, IIO_MOD_X,
+ IIO_CHAN(IIO_INCLI, 1, 0, 0, NULL, 0, IIO_MOD_X,
(1 << IIO_CHAN_INFO_SCALE_SHARED),
incli_x, ADIS16209_SCAN_INCLI_X,
IIO_ST('s', 14, 16, 0), 0),
- IIO_CHAN(IIO_INCLI, 0, 1, 0, NULL, 0, IIO_MOD_Y,
+ IIO_CHAN(IIO_INCLI, 1, 0, 0, NULL, 0, IIO_MOD_Y,
(1 << IIO_CHAN_INFO_SCALE_SHARED),
incli_y, ADIS16209_SCAN_INCLI_Y,
IIO_ST('s', 14, 16, 0), 0),
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] iio: accel: ADIS16209: Fix double registration of in_incli0_index
2011-08-26 11:36 [PATCH] iio: accel: ADIS16209: Fix double registration of in_incli0_index michael.hennerich
@ 2011-08-26 12:00 ` Jonathan Cameron
2011-08-26 11:56 ` Hennerich, Michael
0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Cameron @ 2011-08-26 12:00 UTC (permalink / raw)
To: michael.hennerich; +Cc: linux-iio, device-drivers-devel, drivers
On 08/26/11 12:36, michael.hennerich@analog.com wrote:
> From: Michael Hennerich <michael.hennerich@analog.com>
>
> iio (null): tried to double register : in_incli0_index
oops. That (null) is clearly an issue to.
As for the fix. Yet another bug due to that pesky IIO_CHAN
macro. hohum.
Thanks and merged.
>
> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
> ---
> drivers/staging/iio/accel/adis16209_core.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/iio/accel/adis16209_core.c b/drivers/staging/iio/accel/adis16209_core.c
> index 183b5c2..8d5f1d5 100644
> --- a/drivers/staging/iio/accel/adis16209_core.c
> +++ b/drivers/staging/iio/accel/adis16209_core.c
> @@ -431,11 +431,11 @@ static struct iio_chan_spec adis16209_channels[] = {
> (1 << IIO_CHAN_INFO_SCALE_SEPARATE),
> in_aux, ADIS16209_SCAN_AUX_ADC,
> IIO_ST('u', 12, 16, 0), 0),
> - IIO_CHAN(IIO_INCLI, 0, 1, 0, NULL, 0, IIO_MOD_X,
> + IIO_CHAN(IIO_INCLI, 1, 0, 0, NULL, 0, IIO_MOD_X,
> (1 << IIO_CHAN_INFO_SCALE_SHARED),
> incli_x, ADIS16209_SCAN_INCLI_X,
> IIO_ST('s', 14, 16, 0), 0),
> - IIO_CHAN(IIO_INCLI, 0, 1, 0, NULL, 0, IIO_MOD_Y,
> + IIO_CHAN(IIO_INCLI, 1, 0, 0, NULL, 0, IIO_MOD_Y,
> (1 << IIO_CHAN_INFO_SCALE_SHARED),
> incli_y, ADIS16209_SCAN_INCLI_Y,
> IIO_ST('s', 14, 16, 0), 0),
^ permalink raw reply [flat|nested] 4+ messages in thread* RE: [PATCH] iio: accel: ADIS16209: Fix double registration of in_incli0_index
2011-08-26 12:00 ` Jonathan Cameron
@ 2011-08-26 11:56 ` Hennerich, Michael
2011-08-26 12:07 ` Jonathan Cameron
0 siblings, 1 reply; 4+ messages in thread
From: Hennerich, Michael @ 2011-08-26 11:56 UTC (permalink / raw)
To: Jonathan Cameron
Cc: linux-iio@vger.kernel.org,
device-drivers-devel@blackfin.uclinux.org, Drivers
Jonathan Cameron wrote on 2011-08-26:
> On 08/26/11 12:36, michael.hennerich@analog.com wrote:
>> From: Michael Hennerich <michael.hennerich@analog.com>
>>
>> iio (null): tried to double register : in_incli0_index
> oops. That (null) is clearly an issue to.
>
> As for the fix. Yet another bug due to that pesky IIO_CHAN
> macro. hohum.
>
> Thanks and merged.
I'm currently in progress testing some devices, since I need to update our documentation.
Will send more patches - would be great if you could take them through your tree.
Greetings,
Michael
--
Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368;
Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin, Margaret Seif
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] iio: accel: ADIS16209: Fix double registration of in_incli0_index
2011-08-26 11:56 ` Hennerich, Michael
@ 2011-08-26 12:07 ` Jonathan Cameron
0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2011-08-26 12:07 UTC (permalink / raw)
To: Hennerich, Michael
Cc: linux-iio@vger.kernel.org,
device-drivers-devel@blackfin.uclinux.org, Drivers
On 08/26/11 12:56, Hennerich, Michael wrote:
> Jonathan Cameron wrote on 2011-08-26:
>> On 08/26/11 12:36, michael.hennerich@analog.com wrote:
>>> From: Michael Hennerich <michael.hennerich@analog.com>
>>>
>>> iio (null): tried to double register : in_incli0_index
>> oops. That (null) is clearly an issue to.
>>
>> As for the fix. Yet another bug due to that pesky IIO_CHAN
>> macro. hohum.
>>
>> Thanks and merged.
>
> I'm currently in progress testing some devices, since I need to update our documentation.
> Will send more patches - would be great if you could take them through your tree.
Will do and thanks for all the testing.
Jonathan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-26 11:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-26 11:36 [PATCH] iio: accel: ADIS16209: Fix double registration of in_incli0_index michael.hennerich
2011-08-26 12:00 ` Jonathan Cameron
2011-08-26 11:56 ` Hennerich, Michael
2011-08-26 12:07 ` Jonathan Cameron
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.