I know that there isn't an official 3.1 kernel for a Tegra 2 however, I've
started working on getting one ported, but I'm running into a snag with
drivers.
After working out GPIO issues, I'm having a problem with the light sensor
(isl29018 specifically). Every time I've tried to build, I get this error:
drivers/staging/iio/light/isl29018.c: In function 'isl29018_write_raw':
drivers/staging/iio/light/isl29018.c:356: error:
'IIO_CHAN_INFO_CALIBSCALE_SEPARATE' undeclared (first use in this function)
drivers/staging/iio/light/isl29018.c:356: error: (Each undeclared
identifier is reported only once
drivers/staging/iio/light/isl29018.c:356: error: for each function it
appears in.)
drivers/staging/iio/light/isl29018.c: In function 'isl29018_read_raw':
drivers/staging/iio/light/isl29018.c:396: error:
'IIO_CHAN_INFO_CALIBSCALE_SEPARATE' undeclared (first use in this function)
drivers/staging/iio/light/isl29018.c: At top level:
drivers/staging/iio/light/isl29018.c:415: error:
'IIO_CHAN_INFO_CALIBSCALE_SEPARATE' undeclared here (not in a function)
drivers/staging/iio/light/isl29018.c:426: error: expected ')' before '('
token
drivers/staging/iio/light/isl29018.c:427: error: expected ')' before string
constant
drivers/staging/iio/light/isl29018.c:428: error: expected ')' before string
constant
drivers/staging/iio/light/isl29018.c:429: error: expected ')' before '('
token
drivers/staging/iio/light/isl29018.c:432: error: expected ')' before '('
token
drivers/staging/iio/light/isl29018.c:439: error: 'iio_dev_attr_range'
undeclared here (not in a function)
drivers/staging/iio/light/isl29018.c:439: error: request for member
'dev_attr' in something not a structure or union
drivers/staging/iio/light/isl29018.c:439: error: request for member 'attr'
in something not a structure or union
drivers/staging/iio/light/isl29018.c:439: error: initializer element is not
constant
drivers/staging/iio/light/isl29018.c:439: error: (near initialization for
'isl29018_attributes[0]')
drivers/staging/iio/light/isl29018.c:440: error:
'iio_const_attr_range_available' undeclared here (not in a function)
drivers/staging/iio/light/isl29018.c:440: error: request for member
'dev_attr' in something not a structure or union
drivers/staging/iio/light/isl29018.c:440: error: request for member 'attr'
in something not a structure or union
drivers/staging/iio/light/isl29018.c:440: error: initializer element is not
constant
drivers/staging/iio/light/isl29018.c:440: error: (near initialization for
'isl29018_attributes[1]')
drivers/staging/iio/light/isl29018.c:441: error:
'iio_dev_attr_adc_resolution' undeclared here (not in a function)
drivers/staging/iio/light/isl29018.c:441: error: request for member
'dev_attr' in something not a structure or union
drivers/staging/iio/light/isl29018.c:441: error: request for member 'attr'
in something not a structure or union
drivers/staging/iio/light/isl29018.c:441: error: initializer element is not
constant
drivers/staging/iio/light/isl29018.c:441: error: (near initialization for
'isl29018_attributes[2]')
drivers/staging/iio/light/isl29018.c:442: error:
'iio_const_attr_adc_resolution_available' undeclared here (not in a
function)
drivers/staging/iio/light/isl29018.c:442: error: request for member
'dev_attr' in something not a structure or union
drivers/staging/iio/light/isl29018.c:442: error: request for member 'attr'
in something not a structure or union
drivers/staging/iio/light/isl29018.c:442: error: initializer element is not
constant
drivers/staging/iio/light/isl29018.c:442: error: (near initialization for
'isl29018_attributes[3]')
drivers/staging/iio/light/isl29018.c:443: error:
'iio_dev_attr_proximity_on_chip_ambient_infrared_supression' undeclared
here (not in a function)
drivers/staging/iio/light/isl29018.c:443: error: request for member
'dev_attr' in something not a structure or union
drivers/staging/iio/light/isl29018.c:443: error: request for member 'attr'
in something not a structure or union
drivers/staging/iio/light/isl29018.c:443: error: initializer element is not
constant
drivers/staging/iio/light/isl29018.c:443: error: (near initialization for
'isl29018_attributes[4]')
make[4]: *** [drivers/staging/iio/light/isl29018.o] Error 1
make[3]: *** [drivers/staging/iio/light] Error 2
make[2]: *** [drivers/staging/iio] Error 2
make[1]: *** [drivers/staging] Error 2
make: *** [drivers] Error 2
I've looked over the file and all previous code blocks and there is nothing
missing. I've been looking over the board files and it seems to my
untrained eyes that the functions are being called properly, but obviously
something is wrong. Any ideas?
--
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
---
You received this message because you are subscribed to the Google Groups
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.