mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Christoph Mair <christoph.mair@gmail.com>
Cc: Jonathan Cameron <kernel@jic23.retrosnub.co.uk>,
	linux-kernel@vger.kernel.org,
	Stefan Schmidt <stefan@datenfreihafen.org>,
	Datta Shubhrajyoti <shubhrajyoti@ti.com>
Subject: Re: [PATCH] Support for the pressure sensor BMP085 from Bosch Sensortec.
Date: Mon, 21 Jun 2010 14:49:58 -0700	[thread overview]
Message-ID: <20100621144958.d5fc694e.akpm@linux-foundation.org> (raw)
In-Reply-To: <1277067058-6929-1-git-send-email-christoph.mair@gmail.com>

On Sun, 20 Jun 2010 22:50:58 +0200
Christoph Mair <christoph.mair@gmail.com> wrote:

> This driver adds support for the BMP085 digital pressure sensor
> from Bosch Sensortec.

If there's a datasheet available, it would be nice to provide a
reference to that in the driver.

> It exposes a sysfs api to userspace where
> pressure and temperature measurement results can be read from the
> pressure0_input and temp0_input file. The chip is able to calculate
> the average of up to eight samples to increase the accuracy.
> This feature can be controlled by writing to the oversampling file.
> 

You didn't adequately (IMO) describe the most important thing: the
userspace interface.

Please do send a full description of the proposed API so we can review
that.  What are the contents of these files?  What are the units of
those contents, etc?

Are there any similar drivers in the tree (I don't think so) and if so
does this new driver offer the same interface?

Bear in mind that if new drivers for similar devices _do_ come along
then we'd prefer that those drivers implement the same interface as
this one.  So is this driver's interface well-designed from that point
of view?

Also, we're supposed to docuemnt these things formally in
Documentation/ABI/.

>
> ...
>
> + * The chip will use 2^oversampling samples for interlan averaging.

I assumed that was supposed to read "internal".

  parent reply	other threads:[~2010-06-21 21:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-19  1:58 Christoph Mair
2010-06-19 10:29 ` Jonathan Cameron
2010-06-20  0:27   ` Christoph Mair
2010-06-20 11:00     ` Jonathan Cameron
2010-06-20 20:50       ` Christoph Mair
2010-06-21  6:45         ` Datta, Shubhrajyoti
2010-06-21  8:52         ` Datta, Shubhrajyoti
2010-06-21 21:49         ` Andrew Morton [this message]
2010-06-22 23:26           ` Christoph Mair
2010-06-23 11:41             ` Jonathan Cameron
2010-06-26 11:10           ` bmp085: add inline and ABI documentation Christoph Mair
2010-06-26 11:10           ` [PATCH 1/2] Add ABI documentation for the bmp085 digital pressure sensor Christoph Mair
2010-06-26 11:10           ` [PATCH 2/2] bmp085: Add interface documentation and link to datasheet Christoph Mair

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=20100621144958.d5fc694e.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=christoph.mair@gmail.com \
    --cc=kernel@jic23.retrosnub.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shubhrajyoti@ti.com \
    --cc=stefan@datenfreihafen.org \
    /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

Powered by JetHome