OSDN Git Service
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Patrick Porlan [Thu, 3 Apr 2014 12:12:47 +0000 (14:12 +0200)]
STPK-1429 Fix Klocwork issue #88803
Wise is the one who knows his limits.
There's an assumption in the code that enumerated all
sensors though, and that their reported indices are
contiguous. That should not be a problem with platforms
we control (e.g. MAX_SENSORS can be adjusted accordingly
as well as recognized sensors types), but that may be
worth revisiting in the future.
Issue: STPK-1429
Change-Id: I25392d1c4bf4c4a308f3c3448262445522fbd3be
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Mon, 7 Apr 2014 13:23:47 +0000 (15:23 +0200)]
STPK-1429 Fix a major SNAFU in iio device report handling
The code computing the number of bytes to read from the
iio character device made the assumption that the location
of the sensor reports within the device report change when
a sensor gets enabled or disabled. That's incorrect.
It worked so far in most cases by luck: either we had one
device per sensor, as with the XPS, or the co-located
sensors were enabled/disabled in order, e.g. accelerometer
enabled whenever we used the gyroscope. Now the gyroscope
works whatever the status of the rotation lock is...
Issue: STPK-1429
Change-Id: I3ab69c49fe1df934ae25d589c8e17da03fa85c7d
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Fri, 28 Mar 2014 13:25:18 +0000 (14:25 +0100)]
STPK-1429 Fix temperature sensor readings
Raw levels were not being converted to standard units,
for poll-mode sensors only. This fixes the temperature
readings on the T100.
Change-Id: I95832b748d707d3d517ff618415f53f6f6d1f859
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Thu, 27 Mar 2014 15:40:25 +0000 (16:40 +0100)]
STPK-1429 Delete a now unused variable
This array is now local to control.c and has been split.
Issue: STPK-1429
Change-Id: I0a36084f5349c1e579a7963dbfe981d9cf13e58d
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Patrick Porlan [Fri, 21 Mar 2014 16:50:01 +0000 (17:50 +0100)]
STPK-1429 Initial version of iio-sensors-hal component
This alternative sensors HAL should eventually be usable with all
sensors exposed using the iio interface. In the current form, it
has only been tested on a European T100 computer, which uses an
Invensense 6500 sensor complex, and only the accelerometer has
been taken care of.
The major reason for writing this new HAL module is the need for
flexibility to handle cases such as several sensors being exposed
through a single iio device. On the T100 the ALS and magnetometer
expose a polling interface (no buffer, no trigger, unreadable
character device). This kind of sensor is supported too.
Issue: STPK-1429
Change-Id: Ib4ebfec4d21559c929f3bbb7b4f2da452a50bd52
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Gumbel, Matthew K [Thu, 10 Apr 2014 18:22:14 +0000 (11:22 -0700)]
Initial empty repository