From: Stefan Tatschner <stefan.tatschner@gmail.com>
To: Andreas Klinger <ak@it-klinger.de>
Cc: Jonathan Cameron <jic23@kernel.org>,
Hartmut Knaack <knaack.h@gmx.de>,
Lars-Peter Clausen <lars@metafoo.de>,
Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
linux-iio@vger.kernel.org
Subject: Re: [PATCH v2] iio/bmp280-core.c: Read calibration data in probe
Date: Thu, 28 Dec 2017 12:40:21 +0100 [thread overview]
Message-ID: <20171228114021.GA23073@kronos> (raw)
In-Reply-To: <20171212203537.8204-1-stefan.tatschner@gmail.com>
Hi,
On Tue, Dec 12, 2017 at 09:35:37PM +0100, Stefan Tatschner wrote:
> This patch affects BME280 and BMP280. The readout of the calibration
> data is moved to the probe function. Each sensor data access triggered
> reading the full calibration data before this patch. According to the
> datasheet, Section 4.4.2., the calibration data is stored in non-volatile
> memory.
>
> Since the calibration data does not change, and cannot be changed by the
> user, we can reduce bus traffic by reading the calibration data once.
> Additionally, proper organization of the data types enables removing
> some odd casts in the compensation formulas.
>
> Signed-off-by: Stefan Tatschner <stefan.tatschner@gmail.com>
what's the status of this? Are there any further opinions on this? I am
happy to address your comments on my first kernel patch. :)
Stefan
> ---
>
> v2 changes:
> - readded the type casts in humidity calibration values
> - fix typo
>
> drivers/iio/pressure/bmp280-core.c | 205 ++++++++++++++++++++++++-------------
> 1 file changed, 134 insertions(+), 71 deletions(-)
next prev parent reply other threads:[~2017-12-28 11:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-12 14:34 [PATCH] iio/bmp280-core.c: Read calibration data in probe Stefan Tatschner
2017-12-12 18:06 ` Andreas Klinger
2017-12-12 20:35 ` [PATCH v2] " Stefan Tatschner
2017-12-12 20:38 ` Stefan Tatschner
2017-12-28 11:40 ` Stefan Tatschner [this message]
2017-12-28 16:50 ` Andreas Klinger
2017-12-29 18:48 ` Jonathan Cameron
2018-01-03 20:13 ` Stefan Tatschner
2018-01-06 13:19 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171228114021.GA23073@kronos \
--to=stefan.tatschner@gmail.com \
--cc=ak@it-klinger.de \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox