* Need some help porting IIO based driver from 3.4 to 3.16 kernel
@ 2014-09-14 11:21 bruce bushby
2014-09-14 11:38 ` Jonathan Cameron
0 siblings, 1 reply; 4+ messages in thread
From: bruce bushby @ 2014-09-14 11:21 UTC (permalink / raw)
To: linux-iio
Hi
I wanted to ask for some advice/pointers for porting this IIO based
"imu" driver:
https://android.googlesource.com/kernel/msm/+/android-msm-hammerhead-3.4-kk-fr2/drivers/staging/iio/imu/inv_mpu
to a 3.16 kernel.
I'm struggling to make sense of the header files in that the header
names appear to have changed and the definitions are completely
different.
My compiles bombs with this message:
CC [M] drivers/iio/imu/inv_mpu/inv_mpu_core.o
In file included from drivers/iio/imu/inv_mpu/inv_mpu_core.c:31:0:
drivers/iio/imu/inv_mpu/inv_mpu_iio.h:23:17: fatal error: iio.h: No
such file or directory
#include "iio.h"
But my kernel has this "iio" header file:
[bruce@build iio]$ pwd
/home/bruce/buildroot/output/build/linux-3.16.2/drivers/iio
[bruce@build iio]$ ls -l iio_core.h
-rw-rw-r--. 1 bruce bruce 2155 Sep 6 00:37 iio_core.h
[bruce@build iio]$
So I'm guessing "iio.h" has evolved and is now "iio_core.h"? ....but
they seem so different?
Any help/pointers much appreciated!!!
Thanks
Bruce
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Need some help porting IIO based driver from 3.4 to 3.16 kernel
2014-09-14 11:21 Need some help porting IIO based driver from 3.4 to 3.16 kernel bruce bushby
@ 2014-09-14 11:38 ` Jonathan Cameron
2014-09-14 20:43 ` Peter Meerwald
0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Cameron @ 2014-09-14 11:38 UTC (permalink / raw)
To: bruce bushby, linux-iio
On September 14, 2014 12:21:25 PM GMT+01:00, bruce bushby <bruce.bushby@gmail.com> wrote:
>Hi
>
>I wanted to ask for some advice/pointers for porting this IIO based
>"imu" driver:
>https://android.googlesource.com/kernel/msm/+/android-msm-hammerhead-3.4-kk-fr2/drivers/staging/iio/imu/inv_mpu
>
>to a 3.16 kernel.
>
>I'm struggling to make sense of the header files in that the header
>names appear to have changed and the definitions are completely
>different.
>
>My compiles bombs with this message:
>
> CC [M] drivers/iio/imu/inv_mpu/inv_mpu_core.o
>In file included from drivers/iio/imu/inv_mpu/inv_mpu_core.c:31:0:
>drivers/iio/imu/inv_mpu/inv_mpu_iio.h:23:17: fatal error: iio.h: No
>such file or directory
> #include "iio.h"
>
>
>But my kernel has this "iio" header file:
>[bruce@build iio]$ pwd
>/home/bruce/buildroot/output/build/linux-3.16.2/drivers/iio
>[bruce@build iio]$ ls -l iio_core.h
>-rw-rw-r--. 1 bruce bruce 2155 Sep 6 00:37 iio_core.h
>[bruce@build iio]$
>
>
>So I'm guessing "iio.h" has evolved and is now "iio_core.h"? ....but
>they seem so different?
iio.h is now in include/linux/iio with a lot of the other headers...
>
>
>Any help/pointers much appreciated!!!
>
>
>Thanks
>Bruce
>--
>To unsubscribe from this list: send the line "unsubscribe linux-iio" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Need some help porting IIO based driver from 3.4 to 3.16 kernel
2014-09-14 11:38 ` Jonathan Cameron
@ 2014-09-14 20:43 ` Peter Meerwald
2014-09-24 15:16 ` bruce bushby
0 siblings, 1 reply; 4+ messages in thread
From: Peter Meerwald @ 2014-09-14 20:43 UTC (permalink / raw)
To: Jonathan Cameron; +Cc: bruce bushby, linux-iio
Hello,
> >I wanted to ask for some advice/pointers for porting this IIO based
> >"imu" driver:
> >https://android.googlesource.com/kernel/msm/+/android-msm-hammerhead-3.4-kk-fr2/drivers/staging/iio/imu/inv_mpu
> >
> >to a 3.16 kernel.
> >
> >I'm struggling to make sense of the header files in that the header
> >names appear to have changed and the definitions are completely
> >different.
> >
> >My compiles bombs with this message:
> >
> > CC [M] drivers/iio/imu/inv_mpu/inv_mpu_core.o
> >In file included from drivers/iio/imu/inv_mpu/inv_mpu_core.c:31:0:
> >drivers/iio/imu/inv_mpu/inv_mpu_iio.h:23:17: fatal error: iio.h: No
> >such file or directory
> > #include "iio.h"
iio moved out of staging after 3.4
try #include <linux/iio/iio.h>
> >But my kernel has this "iio" header file:
> >[bruce@build iio]$ pwd
> >/home/bruce/buildroot/output/build/linux-3.16.2/drivers/iio
> >[bruce@build iio]$ ls -l iio_core.h
> >-rw-rw-r--. 1 bruce bruce 2155 Sep 6 00:37 iio_core.h
> >[bruce@build iio]$
> >
> >
> >So I'm guessing "iio.h" has evolved and is now "iio_core.h"? ....but
> >they seem so different?
> iio.h is now in include/linux/iio with a lot of the other headers...
>
>
>
>
> >
> >
> >Any help/pointers much appreciated!!!
> >
> >
> >Thanks
> >Bruce
> >--
> >To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> >the body of a message to majordomo@vger.kernel.org
> >More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
Peter Meerwald
+43-664-2444418 (mobile)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Need some help porting IIO based driver from 3.4 to 3.16 kernel
2014-09-14 20:43 ` Peter Meerwald
@ 2014-09-24 15:16 ` bruce bushby
0 siblings, 0 replies; 4+ messages in thread
From: bruce bushby @ 2014-09-24 15:16 UTC (permalink / raw)
To: Peter Meerwald; +Cc: Jonathan Cameron, linux-iio
Hi
Quick thank you to Peter and Jonathan for the pointers, worked like a charm.
A special thanks to Daniel Baluta for his help.
Bruce
On Sun, Sep 14, 2014 at 9:43 PM, Peter Meerwald <pmeerw@pmeerw.net> wrote:
> Hello,
>
>> >I wanted to ask for some advice/pointers for porting this IIO based
>> >"imu" driver:
>> >https://android.googlesource.com/kernel/msm/+/android-msm-hammerhead-3.4-kk-fr2/drivers/staging/iio/imu/inv_mpu
>> >
>> >to a 3.16 kernel.
>> >
>> >I'm struggling to make sense of the header files in that the header
>> >names appear to have changed and the definitions are completely
>> >different.
>> >
>> >My compiles bombs with this message:
>> >
>> > CC [M] drivers/iio/imu/inv_mpu/inv_mpu_core.o
>> >In file included from drivers/iio/imu/inv_mpu/inv_mpu_core.c:31:0:
>> >drivers/iio/imu/inv_mpu/inv_mpu_iio.h:23:17: fatal error: iio.h: No
>> >such file or directory
>> > #include "iio.h"
>
> iio moved out of staging after 3.4
>
> try #include <linux/iio/iio.h>
>
>> >But my kernel has this "iio" header file:
>> >[bruce@build iio]$ pwd
>> >/home/bruce/buildroot/output/build/linux-3.16.2/drivers/iio
>> >[bruce@build iio]$ ls -l iio_core.h
>> >-rw-rw-r--. 1 bruce bruce 2155 Sep 6 00:37 iio_core.h
>> >[bruce@build iio]$
>> >
>> >
>> >So I'm guessing "iio.h" has evolved and is now "iio_core.h"? ....but
>> >they seem so different?
>> iio.h is now in include/linux/iio with a lot of the other headers...
>>
>>
>>
>>
>> >
>> >
>> >Any help/pointers much appreciated!!!
>> >
>> >
>> >Thanks
>> >Bruce
>> >--
>> >To unsubscribe from this list: send the line "unsubscribe linux-iio" in
>> >the body of a message to majordomo@vger.kernel.org
>> >More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>>
>
> --
>
> Peter Meerwald
> +43-664-2444418 (mobile)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-24 15:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-14 11:21 Need some help porting IIO based driver from 3.4 to 3.16 kernel bruce bushby
2014-09-14 11:38 ` Jonathan Cameron
2014-09-14 20:43 ` Peter Meerwald
2014-09-24 15:16 ` bruce bushby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox