hwmon: (lm75) Fix all coding-style warnings on lm75 driver
Check/fix all warnings generated by checkpatch.pl script on LM75 driver. Signed-off-by: Michal Orzel <michalorzel.eng@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:

committed by
Guenter Roeck

parent
44e3ad882b
commit
8cbf217223
@@ -797,8 +797,10 @@ static int lm75_detect(struct i2c_client *new_client,
|
||||
|
||||
/* First check for LM75A */
|
||||
if (i2c_smbus_read_byte_data(new_client, 7) == LM75A_ID) {
|
||||
/* LM75A returns 0xff on unused registers so
|
||||
just to be sure we check for that too. */
|
||||
/*
|
||||
* LM75A returns 0xff on unused registers so
|
||||
* just to be sure we check for that too.
|
||||
*/
|
||||
if (i2c_smbus_read_byte_data(new_client, 4) != 0xff
|
||||
|| i2c_smbus_read_byte_data(new_client, 5) != 0xff
|
||||
|| i2c_smbus_read_byte_data(new_client, 6) != 0xff)
|
||||
@@ -849,6 +851,7 @@ static int lm75_suspend(struct device *dev)
|
||||
{
|
||||
int status;
|
||||
struct i2c_client *client = to_i2c_client(dev);
|
||||
|
||||
status = i2c_smbus_read_byte_data(client, LM75_REG_CONF);
|
||||
if (status < 0) {
|
||||
dev_dbg(&client->dev, "Can't read config? %d\n", status);
|
||||
@@ -863,6 +866,7 @@ static int lm75_resume(struct device *dev)
|
||||
{
|
||||
int status;
|
||||
struct i2c_client *client = to_i2c_client(dev);
|
||||
|
||||
status = i2c_smbus_read_byte_data(client, LM75_REG_CONF);
|
||||
if (status < 0) {
|
||||
dev_dbg(&client->dev, "Can't read config? %d\n", status);
|
||||
|
Reference in New Issue
Block a user