motion: make fiforead optional

This command is rarely used, make it optional when sensor fifo is enabled.

BUG=none
BRANCH=kevin
TEST=compile

Change-Id: I2b8351924697953d8df08a0724b5968948603222
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/382676
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
This commit is contained in:
Gwendal Grignou
2016-09-08 12:55:31 -07:00
committed by chrome-bot
parent 76e66c04f3
commit c96d0418f8
2 changed files with 2 additions and 1 deletions

View File

@@ -1479,7 +1479,7 @@ DECLARE_CONSOLE_COMMAND(accelinfo, command_display_accel_info,
" and set calculation frequency.");
#endif /* CONFIG_CMD_ACCEL_INFO */
#ifdef CONFIG_ACCEL_FIFO
#ifdef CONFIG_CMD_ACCEL_FIFO
static int motion_sense_read_fifo(int argc, char **argv)
{
int count, i;

View File

@@ -555,6 +555,7 @@
*/
#undef CONFIG_CMD_ACCELS
#undef CONFIG_CMD_ACCEL_FIFO
#undef CONFIG_CMD_ACCEL_INFO
#undef CONFIG_CMD_ALS
#define CONFIG_CMD_APTHROTTLE