Add more delay after the device powers on in order to avoid invalid data.
Change-Id: Ifcbc42300b0f27542eb32d199dbda04e3c1e9eb9
Signed-off-by: Mike Corrigan <michael.corrigan@motorola.com>
#define ODR100 0x08 /* 100Hz output data rate */
#define ODR400 0x10 /* 400Hz output data rate */
#define ODR1000 0x18 /* 1000Hz output data rate */
-
+#define L3G4200D_PU_DELAY 300
struct l3g4200d_data {
struct i2c_client *client;
struct l3g4200d_platform_data *pdata;
return err;
}
schedule_delayed_work(&gyro->input_work,
- msecs_to_jiffies(gyro->pdata->poll_interval));
+ msecs_to_jiffies(L3G4200D_PU_DELAY));
}
return 0;