From: Joe Perches <joe@perches.com>
To: Eric Andersson <eric.andersson@unixphere.com>
Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org,
alan@lxorguk.ukuu.org.uk, arnd@arndb.de,
zhengguang.guo@bosch-sensortec.com, peter.moeller@cn.bosch.com,
stefan.nilsson@unixphere.com,
broonie@opensource.wolfsonmicro.com
Subject: Re: [PATCHv3 1/3] misc: clean up bmp085 driver
Date: Wed, 04 Apr 2012 12:55:59 -0700 [thread overview]
Message-ID: <1333569359.23520.12.camel@joe2Laptop> (raw)
In-Reply-To: <1333568759-13536-2-git-send-email-eric.andersson@unixphere.com>
On Wed, 2012-04-04 at 21:45 +0200, Eric Andersson wrote:
> This patch includes various cleaning of the bmp085 driver including:
> - Whitespaces and alignment fixes
> - Minor typos
> - Consistency fixes
just some more trivial things:
> diff --git a/drivers/misc/bmp085.c b/drivers/misc/bmp085.c
[]
> @@ -222,8 +217,10 @@ exit:
> /*
> * This function starts the pressure measurement and returns the value
> * in millibar. Since the pressure depends on the ambient temperature,
> - * a temperature measurement is executed if the last known value is older
> - * than one second.
> + * a temperature measurement is executed according to the given temperature
> + * measurememt period (default is 1 sec boundary). This period could vary
typo: measurement
> + * and needs to be adjusted according to the sensor environment, i.e. if big
> + * temperature variations then the temperature needs to be read out often.
> @@ -386,25 +387,23 @@ static int bmp085_detect(struct i2c_client *client, struct i2c_board_info *info)
>
> static int bmp085_init_client(struct i2c_client *client)
[]
> - dev_info(&data->client->dev, "BMP085 ver. %d.%d found.\n",
> - (version & 0x0F), (version & 0xF0) >> 4);
Why remove the "version" output?
[]
> static int __devinit bmp085_probe(struct i2c_client *client,
> - const struct i2c_device_id *id)
> + const struct i2c_device_id *id)
[]
> @@ -430,8 +426,9 @@ static int __devinit bmp085_probe(struct i2c_client *client,
> if (err)
> goto exit_free;
>
> - dev_info(&data->client->dev, "Successfully initialized bmp085!\n");
> - goto exit;
> + dev_info(&client->dev, "Succesfully initialized %s!\n", BMP085_NAME);
typo: successfully
next prev parent reply other threads:[~2012-04-04 19:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-04 19:45 [PATCHv3 0/3] bmp085: add support for bmp18x chip Eric Andersson
2012-04-04 19:45 ` [PATCHv3 1/3] misc: clean up bmp085 driver Eric Andersson
2012-04-04 19:55 ` Joe Perches [this message]
2012-04-05 6:30 ` Eric Andersson
2012-04-04 19:45 ` [PATCHv3 2/3] misc: bmp085: add device tree properties Eric Andersson
2012-04-04 19:45 ` [PATCHv3 3/3] misc: add support for bmp18x chips to the bmp085 driver Eric Andersson
2012-04-04 19:55 ` Mark Brown
2012-04-04 20:00 ` Arnd Bergmann
2012-04-04 20:11 ` Mark Brown
2012-04-05 6:53 ` Eric Andersson
2012-04-07 1:37 ` Grant Likely
2012-04-04 19:52 ` [PATCHv3 0/3] bmp085: add support for bmp18x chip Arnd Bergmann
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=1333569359.23520.12.camel@joe2Laptop \
--to=joe@perches.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=arnd@arndb.de \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=eric.andersson@unixphere.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.moeller@cn.bosch.com \
--cc=stefan.nilsson@unixphere.com \
--cc=zhengguang.guo@bosch-sensortec.com \
/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;
as well as URLs for NNTP newsgroup(s).