From: Guenter Roeck <linux@roeck-us.net>
To: Michael Thalmeier <michael.thalmeier@hale.at>, jdelvare@suse.de
Cc: lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] hwmon: (lm75) Add support for the NXP LM75B
Date: Thu, 06 Nov 2014 06:21:32 -0800 [thread overview]
Message-ID: <545B83EC.7000304@roeck-us.net> (raw)
In-Reply-To: <1415282376-3055-1-git-send-email-michael.thalmeier@hale.at>
On 11/06/2014 05:59 AM, Michael Thalmeier wrote:
> It is basically a faster lm75 with improved (11 bit) resolution.
>
> Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at>
> ---
> Documentation/hwmon/lm75 | 6 ++++++
> drivers/hwmon/lm75.c | 6 ++++++
> 2 files changed, 12 insertions(+)
>
> diff --git a/Documentation/hwmon/lm75 b/Documentation/hwmon/lm75
> index c6a5ff1..62e216a 100644
> --- a/Documentation/hwmon/lm75
> +++ b/Documentation/hwmon/lm75
> @@ -53,6 +53,12 @@ Supported chips:
> http://www.ti.com/product/tmp75
> http://www.ti.com/product/tmp175
> http://www.ti.com/product/tmp275
> + * NXP LM75B
> + Prefix: 'lm75b'
> + Addresses scanned: none
> + Datasheet: Publicly available at the NXP website
> + http://www.nxp.com/documents/data_sheet/LM75B.pdf
> +
>
No additional newline, please.
> Author: Frodo Looijaard <frodol@dds.nl>
>
> diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
> index d16dbb33a..7ec5ccd 100644
> --- a/drivers/hwmon/lm75.c
> +++ b/drivers/hwmon/lm75.c
> @@ -44,6 +44,7 @@ enum lm75_type { /* keep sorted in alphabetical order */
> g751,
> lm75,
> lm75a,
> + lm75b,
> max6625,
> max6626,
> mcp980x,
> @@ -271,6 +272,10 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
> data->resolution = 12;
> data->sample_time = HZ / 2;
> break;
> + case lm75b:
> + data->resolution = 11;
> + data->sample_time = HZ / 4;
> + break;
Alphabetic order, please.
> }
>
> /* configure as specified */
> @@ -334,6 +339,7 @@ static const struct i2c_device_id lm75_ids[] = {
> { "tmp175", tmp175, },
> { "tmp275", tmp275, },
> { "tmp75", tmp75, },
> + { "lm75b", lm75b, },
Alphabetic order, please.
Thanks,
Guenter
> { /* LIST END */ }
> };
> MODULE_DEVICE_TABLE(i2c, lm75_ids);
>
prev parent reply other threads:[~2014-11-06 14:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 13:59 [PATCH] hwmon: (lm75) Add support for the NXP LM75B Michael Thalmeier
2014-11-06 14:21 ` Guenter Roeck [this message]
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=545B83EC.7000304@roeck-us.net \
--to=linux@roeck-us.net \
--cc=jdelvare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=michael.thalmeier@hale.at \
/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