Commit d6450e85 authored by Corentin Labbe's avatar Corentin Labbe Committed by Guenter Roeck

hwmon: (adm1029) Fix Logical continuations should be on the previous line checkpatch warning

This patchs fix the "Logical continuations should be on the previous line" checkpatch warning.
Signed-off-by: default avatarCorentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 66b331ca
...@@ -131,8 +131,7 @@ static struct adm1029_data *adm1029_update_device(struct device *dev) ...@@ -131,8 +131,7 @@ static struct adm1029_data *adm1029_update_device(struct device *dev)
* Use the "cache" Luke, don't recheck values * Use the "cache" Luke, don't recheck values
* if there are already checked not a long time later * if there are already checked not a long time later
*/ */
if (time_after(jiffies, data->last_updated + HZ * 2) if (time_after(jiffies, data->last_updated + HZ * 2) || !data->valid) {
|| !data->valid) {
int nr; int nr;
dev_dbg(&client->dev, "Updating adm1029 data\n"); dev_dbg(&client->dev, "Updating adm1029 data\n");
...@@ -182,9 +181,9 @@ show_fan(struct device *dev, struct device_attribute *devattr, char *buf) ...@@ -182,9 +181,9 @@ show_fan(struct device *dev, struct device_attribute *devattr, char *buf)
struct adm1029_data *data = adm1029_update_device(dev); struct adm1029_data *data = adm1029_update_device(dev);
u16 val; u16 val;
if (data->fan[attr->index] == 0 if (data->fan[attr->index] == 0 ||
|| (data->fan_div[attr->index] & 0xC0) == 0 (data->fan_div[attr->index] & 0xC0) == 0 ||
|| data->fan[attr->index] == 255) { data->fan[attr->index] == 255) {
return sprintf(buf, "0\n"); return sprintf(buf, "0\n");
} }
...@@ -325,8 +324,8 @@ static int adm1029_detect(struct i2c_client *client, ...@@ -325,8 +324,8 @@ static int adm1029_detect(struct i2c_client *client,
nb_fan_support = i2c_smbus_read_byte_data(client, nb_fan_support = i2c_smbus_read_byte_data(client,
ADM1029_REG_NB_FAN_SUPPORT); ADM1029_REG_NB_FAN_SUPPORT);
/* 0x41 is Analog Devices */ /* 0x41 is Analog Devices */
if (man_id != 0x41 || (temp_devices_installed & 0xf9) != 0x01 if (man_id != 0x41 || (temp_devices_installed & 0xf9) != 0x01 ||
|| nb_fan_support != 0x03) nb_fan_support != 0x03)
return -ENODEV; return -ENODEV;
if ((chip_id & 0xF0) != 0x00) { if ((chip_id & 0xF0) != 0x00) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment