mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
motion: cleanup include file
Use test_export_static for static variable/function that needs to by used by tests/motion_lid.c BRANCH=smaug BUG=none TEST=Compile, make buildall -j Change-Id: I2f3eb72ce319622842885be9125b91e58f47133a Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/311754 Reviewed-by: Alec Berg <alecaberg@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
4270931936
commit
0922cc81ce
@@ -34,7 +34,7 @@
|
||||
/*
|
||||
* Sampling interval for measuring acceleration and calculating lid angle.
|
||||
*/
|
||||
unsigned int motion_interval;
|
||||
test_export_static unsigned int motion_interval;
|
||||
|
||||
/* Delay between FIFO interruption. */
|
||||
static unsigned int motion_int_interval;
|
||||
@@ -62,7 +62,7 @@ static struct mutex g_sensor_mutex;
|
||||
/*
|
||||
* Current power level (S0, S3, S5, ...)
|
||||
*/
|
||||
enum chipset_state_mask sensor_active;
|
||||
test_export_static enum chipset_state_mask sensor_active;
|
||||
|
||||
#ifdef CONFIG_ACCEL_FIFO
|
||||
/* Need to wake up the AP */
|
||||
@@ -296,7 +296,7 @@ static int motion_sense_ec_rate(struct motion_sensor_t *sensor)
|
||||
*
|
||||
* Note: Not static to be tested.
|
||||
*/
|
||||
int motion_sense_set_motion_intervals(void)
|
||||
static int motion_sense_set_motion_intervals(void)
|
||||
{
|
||||
int i, sensor_ec_rate, ec_rate = 0, ec_int_rate_ms = 0, wake_up = 0;
|
||||
struct motion_sensor_t *sensor;
|
||||
|
||||
@@ -135,11 +135,6 @@ struct motion_sensor_t {
|
||||
extern struct motion_sensor_t motion_sensors[];
|
||||
extern const unsigned motion_sensor_count;
|
||||
|
||||
/* For testing purposes: export the sampling interval. */
|
||||
extern enum chipset_state_mask sensor_active;
|
||||
extern unsigned motion_interval;
|
||||
int motion_sense_set_motion_intervals(void);
|
||||
|
||||
/*
|
||||
* Priority of the motion sense resume/suspend hooks, to be sure associated
|
||||
* hooks are scheduled properly.
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
|
||||
extern enum chipset_state_mask sensor_active;
|
||||
extern unsigned motion_interval;
|
||||
|
||||
/*
|
||||
* Period in us for the motion task period.
|
||||
|
||||
Reference in New Issue
Block a user