From 037490d0e6f0bedd7b48ce30b886205bd7a2a23e Mon Sep 17 00:00:00 2001 From: Mike Corrigan Date: Wed, 29 Dec 2010 16:25:40 -0600 Subject: [PATCH] misc: l3g4200d: Add delay after power on. Add more delay after the device powers on in order to avoid invalid data. Change-Id: Ifcbc42300b0f27542eb32d199dbda04e3c1e9eb9 Signed-off-by: Mike Corrigan --- drivers/misc/l3g4200d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/l3g4200d.c b/drivers/misc/l3g4200d.c index 311ac744aea4..39ad78f88d9c 100644 --- a/drivers/misc/l3g4200d.c +++ b/drivers/misc/l3g4200d.c @@ -76,7 +76,7 @@ #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; @@ -323,7 +323,7 @@ static int l3g4200d_enable(struct l3g4200d_data *gyro) return err; } schedule_delayed_work(&gyro->input_work, - msecs_to_jiffies(gyro->pdata->poll_interval)); + msecs_to_jiffies(L3G4200D_PU_DELAY)); } return 0; -- 2.34.1