From: Jacek Anaszewski <j.anaszewski@samsung.com>
To: linux-iio@vger.kernel.org
Cc: Jacek Anaszewski
<public-j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@plane.gmane.org>,
public-linux-iio-u79uwXL29TY76Z2rM5mHXA@plane.gmane.org,
public-matteo.dameno-qxv4g6HH51o@plane.gmane.org,
public-carmine.iascone-qxv4g6HH51o@plane.gmane.org,
public-kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@plane.gmane.org,
public-s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@plane.gmane.org
Subject: Re: [NEW DRIVER] iio: lps331ap: Add new driver for the device
Date: Mon, 20 May 2013 11:58:43 +0200 [thread overview]
Message-ID: <5199F3D3.5010704@samsung.com> (raw)
In-Reply-To: <5197555D.8070801@kernel.org>
On 05/18/2013 12:18 PM, Jonathan Cameron wrote:
> On 05/10/2013 10:09 AM, Jacek Anaszewski wrote:
>> Add new driver for the barometer device. The driver is
>> compiliant with IIO framework, and exposes two channels
>> for reading the pressure and the temperature. The output
>> data can be read either in 'one shot' mode or by exploiting
>> IIO events.
>>
>> Signed-off-by: Jacek Anaszewski<j.anaszewski@samsung.com>
>> Reviewed-by: Sylwester Nawrocki<s.nawrocki@samsung.com>
>> Signed-off-by: Kyungmin Park<kyungmin.park@samsung.com>
> Hi All,
>
> As I said the other day I'll review this driver irrespective
> of what is going on with Denis' alternative. It is a useful
> exercise to look at alternative drivers for parts anyway
> and I hope the feedback may prove useful.
>
> This is mostly a nice driver. Few bits and bobs inline.
>
> There are some places where a bit of simple reorganization can
> lead to code that is easier to review (thus making me happy).
> You can also hopefully assume the core code isn't calling
> your callbacks with invalid combinations so drop some error
> checking (if it is I certainly want to know about it!)
>
> Also I'd like to see the stanard i2c helper functions used
> (using the simple byte and word ones where possible).
> That will reduce the length of the code a fair bit by
> not reinventing the wheel...
>
> All in all a driver that did not make for an unpleasant hour on a
> Saturday morning :)
>
> Jonathan
Hi Jonathan,
Thanks for the thorough review. I will certainly keep your remarks
in mind and apply them in my future patches.
Thanks,
Jacek
next prev parent reply other threads:[~2013-05-20 9:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-10 9:09 [NEW DRIVER] LPS331AP barometer sensor driver Jacek Anaszewski
2013-05-10 9:09 ` [NEW DRIVER] iio: lps331ap: Add new driver for the device Jacek Anaszewski
2013-05-18 10:18 ` Jonathan Cameron
2013-05-20 9:58 ` Jacek Anaszewski [this message]
2013-05-10 9:31 ` [NEW DRIVER] LPS331AP barometer sensor driver Denis CIOCCA
2013-05-13 7:27 ` Jacek Anaszewski
2013-05-13 8:57 ` 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=5199F3D3.5010704@samsung.com \
--to=j.anaszewski@samsung.com \
--cc=linux-iio@vger.kernel.org \
--cc=public-carmine.iascone-qxv4g6HH51o@plane.gmane.org \
--cc=public-j.anaszewski-Sze3O3UU22JBDgjK7y7TUQ@plane.gmane.org \
--cc=public-kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@plane.gmane.org \
--cc=public-linux-iio-u79uwXL29TY76Z2rM5mHXA@plane.gmane.org \
--cc=public-matteo.dameno-qxv4g6HH51o@plane.gmane.org \
--cc=public-s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@plane.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.