tree 5d29de0be42f155521480102c6b398d37a8ba312 parent bee1d1bd3fbc359d022682dbbae4c09864ab7f25 author Wolfgang Wiedmeyer 1496939587 +0200 committer Wolfgang Wiedmeyer 1496939587 +0200 gpgsig -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABCgAGBQJZOX3ZAAoJEFgWokwQdX/EM3YQAKEqnfho15DW57IEglxanNUW zqdhyaxJMf+S/67HYEoYRz6IqNFOZpBPTg0l+gWALJapfs58cqcezr1rsJzBV4ic yFxcBDIfiPCNh06ke2sFbbjc70IrtNrKKl7ghP82wgzjIyx0yjnxWGHLryzsCiea 6qzo1PYS2+2IaKDDDWltzwjAzjj2XKivZ2sOoxoG2zM95WDoRD08OH8qe8KPZBQX jBiEA0L5zVuXtQWpOcwVcG8Ax0aW8rG2itfcQHj2HNppDx+XDAPA0seQEkabkbbO QWwQM0PfbSZruSTzCdrYq+bNtLIqYD6bWRwAaEE04LLGsSnvw4TU9dN2edAHFIxt 89Vk0L59uZkGaYVp0TGgyseroLYAhCECxQpJdjSFU4y0GW4CUPbZQRLlazCv3goI hqa8TsbNwH+3n63XsgDltOn0k17+ORSFNmaLgzqaWE9XOTOXn+IFc4nbP3NOSpr0 SCP1h/Ffhm2yJQkKesOWa+01l03Y+5iR0SBinQiXVqdi+F3Ap43SW5wHcFY9SRph VVCYb5sJS+9xSOEbGiooUyzBSAbkneFJH3yQk6QNmibk41y1JIDtZkf3tsW9q+rX LMi8n0jWIXYkmHi/Dp0/g8BxPJnTBdPO9HwrutQnIRJGLAtX4XK+pQHgRMyW9wdt GUbysCtp3lbuHdTFh7Q2 =0uyT -----END PGP SIGNATURE----- sensors bringup Various fixes are ported from the i9300 sensors. A list of commits, where fixes were taken from, is attached below. commit 0f8e8cc Author: Christian Balster Date: Wed May 20 13:19:48 2015 +0200 i9300: libsensors: add real accuracy reporting for magnetometer Change-Id: I3dd56f4d7fb0de8feca2422c165fe0c3cd92761a commit 2104318 Author: Christian Balster Date: Wed May 20 17:14:11 2015 +0200 i9300: libsensors: fix typo in accelerometer data Change-Id: Iee501b65c23bed22bfe769496bafc852f939a8ac commit b69dd87 Author: Christian Balster Date: Wed May 20 17:16:29 2015 +0200 i9300: libsensors: report at least bogus accuracy for gyro Change-Id: I81ff71c8ae6bf25c1aabac4a6d8d6fcf64bd2e0b commit d786475 Author: Christian Balster Date: Thu May 21 17:46:00 2015 +0200 i9300: libsensors: fix magnetometer offset parameters not being saved also fix a typo Change-Id: I69246a96c53d7ec02ca90d73bc85dec4cbc73343 commit f7d2dfd Author: Christian Balster Date: Tue Jun 2 15:08:02 2015 +0200 i9300: libsensors: remove unused orientation sensor The Orientation Sensor is deprecated and no longer required. Additionally this implementation is never even used, since Android automatically replaces it by it's own implementation if the sensor HAL doesn't also provide a Rotation Vector sensor. Furthermore the current implementation only uses the accelerometer and magnetometer for the sensor fusion and doesn't make use of the Gyroscope. So should we at some point decide to implement our own complete sensor fusion this would have to be rewritten anyway. Change-Id: I45d8a9afd2089b49131e6cc69cdf2f3dfee46c92 commit fc862f3 Author: Dheeraj CVR Date: Thu Jun 11 16:44:25 2015 +0400 libsensors: switch to portable typedefs to match callbacks Using a strict basetype only coding style is not a good idea especially when we are dealing with callbacks which use portable typedef like int64_t. This kind of coding style would most likely end up in overflows at various places especially when dealing with timestamps and sensor delays which are caused when typecasting datatypes of different size. Switch to portable typedefs and get rid of "long". Change-Id: I75b9cace7602345dba9095f046292e6d4db07df4 commit a484daf Author: Christian Balster Date: Mon Jun 15 17:46:29 2015 +0200 i9300: libsensors: fix possible overflow while setting delay Even though we changed the signature of the set_delay() methods, we can still get an overflow while actually writing the values to sysfs. Let's adapt sysfs_value_read() and sysfs_value_write() too. Change-Id: If8eda7204831f0edabec890d4e3127be520fa3bf commit 594d5b8 Author: Dheeraj CVR Date: Thu Jun 11 17:57:26 2015 +0400 libsensors: update sensor flags Change-Id: Ia57026f4e8f5dd270da7619bc25289fc414bce30 Signed-off-by: Wolfgang Wiedmeyer