Closed produit closed 10 years ago
The warnings are for an experimental driver, not the one used by the orientation code, even though the name might suggest that it is being used. I'm getting these warnings as well, so I pulled that driver and the other experimental drivers out of the standard make.
produit@yoga$ uname -a Linux yoga 3.13.0-30-generic #54-Ubuntu SMP Mon Jun 9 22:45:01 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
/home/produit/yoga-laptop/sensors/drivers/hid-sensor-orient.c: In function ‘hid_sensor_probe’: /home/produit/yoga-laptop/sensors/drivers/hid-sensor-orient.c:329:9: warning: passing argument 1 of ‘hid_sensor_remove_trigger’ from incompatible pointer type [enabled by default] hid_sensor_remove_trigger(indio_dev); ^ In file included from /home/produit/yoga-laptop/sensors/drivers/hid-sensor-orient.c:31:0: /home/produit/yoga-laptop/sensors/drivers/./hid-sensor-trigger.h:24:6: note: expected ‘struct hid_sensor_common ’ but argument is of type ‘struct iio_dev ’ void hid_sensor_remove_trigger(struct hid_sensor_common *attrb); ^
Those are just warning, it does compile. I have seen this code run with some kernels. But not under ubuntu 14.04. PErhaps it is realted to this warning?
Thanks