[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMpxmJVmyVr7PJGaAkujacpWyRXew=37bz-PsURf7_-dTptBSw@mail.gmail.com>
Date: Thu, 8 Jan 2015 19:14:02 +0100
From: Bartosz Golaszewski <bgolaszewski@...libre.com>
To: Guenter Roeck <linux@...ck-us.net>
Cc: LKML <linux-kernel@...r.kernel.org>,
Benoit Cousson <bcousson@...libre.com>,
Patrick Titiano <ptitiano@...libre.com>,
LM Sensors <lm-sensors@...sensors.org>
Subject: Re: [PATCH] hwmon: (ina2xx) implement update_interval attribute for ina226
2015-01-08 18:05 GMT+01:00 Guenter Roeck <linux@...ck-us.net>:
> What is the purpose of multiplying the calculated average by 2 ?
The comment above says:
> + /*
> + * Add bus and shunt voltage conversion times and multiple them
> + * by the averaging rate. Return the result in milliseconds.
> + */
Since both conversion times are the same and equal
INA226_CONV_TIME_DEFAULT I just multiplied it by 2 - I thought it was
clear enough. I'll fix that in the next iteration.
Bart
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists