Aseda Aboagye
d02620a05d
lsm6ds0: Cache ODR and range on EC.
...
For the driver functions get_range and get_data_rate, each call would
end up executing an i2c transaction even if the value had not
changed. Therefore, I modified the lsm6ds0 driver to cache the output
data rate as well as the range. This prevents unecessary i2c
transactions from occuring.
BUG=chromium:476226
TEST=Flashed EC on samus and verified that the accelrange and accelrate
commands still worked and that the sensors were functional.
TEST=Verified Double Tap still worked.
TEST=make -j buildall tests
BRANCH=none
Change-Id: Ie432979266dc4e4892978005de5d1df62cc0654f
Signed-off-by: Aseda Aboagye <aaboagye@google.com >
Reviewed-on: https://chromium-review.googlesource.com/265933
Reviewed-by: Alec Berg <alecaberg@chromium.org >
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org >
Tested-by: Aseda Aboagye <aaboagye@chromium.org >
2015-04-20 18:46:08 +00:00
..
2015-03-25 20:09:52 +00:00
2013-12-20 05:07:58 +00:00
2015-03-25 20:09:52 +00:00
2014-05-21 20:32:17 +00:00
2013-09-27 23:07:21 +00:00
2014-06-15 01:45:21 +00:00
2015-03-17 01:42:30 +00:00
2014-05-21 20:32:17 +00:00
2014-05-21 20:32:17 +00:00
2015-03-23 19:23:35 +00:00
2015-02-27 02:21:25 +00:00
2015-03-07 03:38:38 +00:00
2015-01-15 05:13:14 +00:00
2015-03-31 06:32:14 +00:00
2014-05-21 20:32:17 +00:00
2014-11-18 05:19:47 +00:00
2014-03-06 21:32:57 +00:00
2015-04-07 23:20:14 +00:00
2015-01-17 23:19:58 +00:00
2015-02-24 00:27:50 +00:00
2014-08-29 02:57:00 +00:00
2014-08-08 03:11:38 +00:00
2013-10-25 20:12:49 +00:00
2014-05-21 20:32:17 +00:00
2014-03-29 02:14:26 +00:00
2013-11-21 22:21:56 +00:00
2014-05-21 20:32:17 +00:00
2015-03-25 20:09:52 +00:00
2014-12-05 00:02:06 +00:00
2014-12-15 22:46:21 +00:00
2015-04-17 19:38:17 +00:00
2013-12-19 00:12:28 +00:00
2014-12-30 22:04:11 +00:00
2015-02-20 02:59:52 +00:00
2015-02-03 05:39:18 +00:00
2015-01-07 08:45:38 +00:00
2015-02-18 04:53:59 +00:00
2015-03-25 20:09:52 +00:00
2014-10-24 01:37:58 +00:00
2013-10-25 01:32:15 +00:00
2014-03-06 21:33:09 +00:00
2015-04-17 19:38:02 +00:00
2014-09-18 02:59:29 +00:00
2015-01-30 05:11:06 +00:00
2015-01-14 03:16:10 +00:00
2014-10-24 01:37:58 +00:00
2015-01-24 06:42:02 +00:00
2013-03-22 11:24:29 -07:00
2014-11-12 23:08:12 +00:00
2014-01-14 09:19:45 +00:00
2015-01-14 21:49:36 +00:00
2015-02-05 19:41:41 +00:00
2014-11-18 01:05:49 +00:00
2015-03-31 23:00:33 +00:00
2015-04-13 20:01:05 +00:00
2015-02-05 19:41:41 +00:00
2015-02-20 00:07:08 +00:00
2014-10-24 01:37:58 +00:00
2015-02-05 19:41:41 +00:00
2015-04-20 18:46:08 +00:00
2013-08-02 18:22:57 -07:00
2014-09-18 02:59:29 +00:00
2015-04-14 01:15:43 +00:00
2015-02-12 23:08:45 +00:00
2014-05-21 20:32:17 +00:00
2013-12-02 22:03:51 +00:00
2014-05-21 20:32:17 +00:00
2014-05-07 03:41:27 +00:00
2015-01-29 06:48:45 +00:00
2015-02-10 23:07:14 +00:00
2015-04-10 23:29:27 +00:00
2015-02-24 00:27:50 +00:00
2012-07-26 16:25:34 -07:00
2013-11-05 02:32:40 +00:00
2013-10-23 20:07:25 +00:00
2015-01-08 00:38:13 +00:00
2014-11-15 06:00:02 +00:00
2015-02-25 08:44:58 +00:00
2014-05-17 20:14:17 +00:00
2013-12-19 00:12:28 +00:00
2015-02-24 00:27:42 +00:00
2015-02-04 23:32:42 +00:00
2015-03-17 01:42:30 +00:00
2015-03-17 01:42:30 +00:00
2015-02-24 00:27:50 +00:00
2014-05-21 20:32:17 +00:00
2015-03-14 03:22:37 +00:00
2015-01-14 03:15:41 +00:00
2014-01-08 03:49:36 +00:00
2015-01-14 03:15:41 +00:00
2014-05-21 20:32:17 +00:00
2015-04-10 22:08:31 +00:00
2015-02-21 00:49:36 +00:00
2015-04-14 17:56:08 +00:00
2015-04-17 19:38:11 +00:00
2014-05-21 20:32:17 +00:00
2014-08-23 02:42:21 +00:00
2015-01-08 00:38:13 +00:00
2015-02-05 21:03:01 +00:00
2014-11-04 21:34:39 +00:00
2014-02-22 00:50:37 +00:00