diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2021-09-09 14:30:47 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-10 22:02:03 +0000 |
commit | 917fb7fbd7a3681067d171fb385bb77de31f3ab6 (patch) | |
tree | 1258bfbd5badab72a172684914be5c026404ac5d /driver/charger | |
parent | 761451afd00f4936c46ed7c917194d5183be46d2 (diff) | |
download | chrome-ec-917fb7fbd7a3681067d171fb385bb77de31f3ab6.tar.gz |
driver: LSM6DSM: Limit FIFO transfer buffer size
The buffer is allocated on the stack. It is currently 32*6 bytes.
This is unnecessarily large as we set the FIFO threshold at 1.
Reduce it to 8*6 bytes, the gain of long I2C transactions is negligible
and we save some space in the stack.
BUG=none
BRANCH=none
TEST=buildall
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I8b6f9f2bdfe27206d049c1fe0b82df4caaadce09
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3150677
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Yuval Peress <peress@google.com>
Diffstat (limited to 'driver/charger')
0 files changed, 0 insertions, 0 deletions