On Wed, Sep 02, 2009 at 11:38:18AM -0700, Ira W. Snyder wrote: > The lm90 driver programs the sensor chip to update its readings at 2 Hz > (500 ms between readings). However, the driver only does reads from the > chip at intervals of 2 * HZ (2000 ms between readings). Change the driver > update rate to the programmed update rate. > > Signed-off-by: Ira W. Snyder <iws@xxxxxxxxxxxxxxxx> > --- > > I think this was probably just a simple mistake made by the original > author of the driver, with the intention being that the driver update > the cached values every 500 ms. The change is confirmed against the > adm1032 datasheet. The chip is updating every 500 ms. > Any comments on this patch? It has almost been lost off my radar. Jean, I think this should be pretty uncontroversial. Can you pick it up? Thanks, Ira > drivers/hwmon/lm90.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c > index 1aff757..f3324c5 100644 > --- a/drivers/hwmon/lm90.c > +++ b/drivers/hwmon/lm90.c > @@ -960,7 +960,7 @@ static struct lm90_data *lm90_update_device(struct device *dev) > > mutex_lock(&data->update_lock); > > - if (time_after(jiffies, data->last_updated + HZ * 2) || !data->valid) { > + if (time_after(jiffies, data->last_updated + HZ / 2) || !data->valid) { > u8 h, l; > > dev_dbg(&client->dev, "Updating lm90 data.\n"); > -- > 1.5.4.3 > > > _______________________________________________ > lm-sensors mailing list > lm-sensors@xxxxxxxxxxxxxx > http://lists.lm-sensors.org/mailman/listinfo/lm-sensors _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors