diff options
author | Mike J. Chen <mjchen@sta.samsung.com> | 2010-09-23 11:20:43 -0700 |
---|---|---|
committer | Brian Swetland <swetland@google.com> | 2010-09-24 16:20:33 -0700 |
commit | 6ac59bec792215222260211a7f19f21dc614484c (patch) | |
tree | 240b0d72cb9b3497c48f1c80d8d72f6377b30c0b /libsensors | |
parent | 64ec9bde8f4295dda22e3fb9176ce078063e1369 (diff) | |
download | device_samsung_crespo-6ac59bec792215222260211a7f19f21dc614484c.zip device_samsung_crespo-6ac59bec792215222260211a7f19f21dc614484c.tar.gz device_samsung_crespo-6ac59bec792215222260211a7f19f21dc614484c.tar.bz2 |
S5PC11X: SENSORS: Fix delays in AkmSensor
Fix delays to be int64_t nanoseconds. Needs corresponding driver fix.
Change-Id: I5a780c3743d91df70fcd1274c5b32ac58c68ac2b
Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>
Diffstat (limited to 'libsensors')
-rw-r--r-- | libsensors/AkmSensor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsensors/AkmSensor.cpp b/libsensors/AkmSensor.cpp index 0968c26..8ae3583 100644 --- a/libsensors/AkmSensor.cpp +++ b/libsensors/AkmSensor.cpp @@ -194,7 +194,7 @@ int AkmSensor::update_delay() wanted = wanted < ns ? wanted : ns; } } - int64_t delay = int64_t(wanted) / 1000000; + int64_t delay = int64_t(wanted); if (ioctl(dev_fd, ECS_IOCTL_APP_SET_DELAY, &delay)) { return -errno; } |