From: Guenter Roeck <linux@roeck-us.net>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH v2 1/2] hwmon: (lm95245) Add support for LM95235
Date: Tue, 02 Dec 2014 11:43:43 +0000 [thread overview]
Message-ID: <547DA5EF.2000301@roeck-us.net> (raw)
In-Reply-To: <1417383473-10328-1-git-send-email-linux@roeck-us.net>
On 12/02/2014 03:39 AM, Jean Delvare wrote:
> Hi Guenter,
>
> On Sun, 30 Nov 2014 13:37:52 -0800, Guenter Roeck wrote:
>> LM95235 is register compatible to LM95245.
>>
>> Also update link to LM95245 data sheet, and drop the link to the
>> datasheet from the driver source to simplify code maintenance.
>>
>> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
>> ---
>> v2: Drop link to datasheet from driver source.
>> Drop DEVNAME.
>> Update MODULE_DESCRIPTION.
>> Use the same driver_data values for supported chips
>> since the field is not used by the driver.
>>
>> Documentation/hwmon/lm95245 | 14 +++++++++-----
>> drivers/hwmon/Kconfig | 5 +++--
>> drivers/hwmon/lm95245.c | 41 +++++++++++++++++++++++++++--------------
>> 3 files changed, 39 insertions(+), 21 deletions(-)
>> (...)
>> diff --git a/drivers/hwmon/lm95245.c b/drivers/hwmon/lm95245.c
>> index 0ae0dfd..0680669 100644
>> --- a/drivers/hwmon/lm95245.c
>> +++ b/drivers/hwmon/lm95245.c
>> (...)
>> @@ -427,17 +424,32 @@ static int lm95245_detect(struct i2c_client *new_client,
>> struct i2c_board_info *info)
>> {
>> struct i2c_adapter *adapter = new_client->adapter;
>> + int address = new_client->addr;
>> + const char *name;
>> + int rev, id;
>>
>> if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA))
>> return -ENODEV;
>>
>> - if (i2c_smbus_read_byte_data(new_client, LM95245_REG_R_MAN_ID)
>> - != MANUFACTURER_ID
>> - || i2c_smbus_read_byte_data(new_client, LM95245_REG_R_CHIP_ID)
>> - != DEFAULT_REVISION)
>> + id = i2c_smbus_read_byte_data(new_client, LM95245_REG_R_MAN_ID);
>> + if (id != MANUFACTURER_ID)
>> return -ENODEV;
>>
>> - strlcpy(info->type, DEVNAME, I2C_NAME_SIZE);
>> + rev = i2c_smbus_read_byte_data(new_client, LM95245_REG_R_CHIP_ID);
>> + switch(rev) {
>
> Missing space before opening parenthesis, checkpatch complains about
> it. Your original patch had it right, not sure what happened?
>
Me not either. The other patch has the same problem. Fixed up both.
> Everything else looks OK, so:
>
> Reviewed-by: Jean Delvare <jdelvare@suse.de>
>
Thanks!
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
prev parent reply other threads:[~2014-12-02 11:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-30 21:37 [lm-sensors] [PATCH v2 1/2] hwmon: (lm95245) Add support for LM95235 Guenter Roeck
2014-12-02 11:39 ` Jean Delvare
2014-12-02 11:43 ` 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=547DA5EF.2000301@roeck-us.net \
--to=linux@roeck-us.net \
--cc=lm-sensors@vger.kernel.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.