diff options
| author | Corentin Labbe <clabbe.montjoie@gmail.com> | 2019-01-18 09:03:28 -0500 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2019-02-18 17:23:29 -0500 |
| commit | a15ad1935055846e1349adde2c1e32ffe2b818e8 (patch) | |
| tree | 548baba8459a576d96f7ad40ce215910f524118f /drivers/hwmon | |
| parent | d6450e8524393fe0341dd010354fbeab88e5001c (diff) | |
hwmon: (adm1029) Fix function alignment
This patch fix the "Alignment should match open parenthesis" checkpatch
warning.
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
| -rw-r--r-- | drivers/hwmon/adm1029.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon/adm1029.c index 4339f6b864a1..e9fe4fc3489e 100644 --- a/drivers/hwmon/adm1029.c +++ b/drivers/hwmon/adm1029.c | |||
| @@ -203,8 +203,8 @@ show_fan_div(struct device *dev, struct device_attribute *devattr, char *buf) | |||
| 203 | return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); | 203 | return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); |
| 204 | } | 204 | } |
| 205 | 205 | ||
| 206 | static ssize_t set_fan_div(struct device *dev, | 206 | static ssize_t set_fan_div(struct device *dev, struct device_attribute *devattr, |
| 207 | struct device_attribute *devattr, const char *buf, size_t count) | 207 | const char *buf, size_t count) |
| 208 | { | 208 | { |
| 209 | struct adm1029_data *data = dev_get_drvdata(dev); | 209 | struct adm1029_data *data = dev_get_drvdata(dev); |
| 210 | struct i2c_client *client = data->client; | 210 | struct i2c_client *client = data->client; |
| @@ -322,7 +322,7 @@ static int adm1029_detect(struct i2c_client *client, | |||
| 322 | temp_devices_installed = i2c_smbus_read_byte_data(client, | 322 | temp_devices_installed = i2c_smbus_read_byte_data(client, |
| 323 | ADM1029_REG_TEMP_DEVICES_INSTALLED); | 323 | ADM1029_REG_TEMP_DEVICES_INSTALLED); |
| 324 | nb_fan_support = i2c_smbus_read_byte_data(client, | 324 | nb_fan_support = i2c_smbus_read_byte_data(client, |
| 325 | ADM1029_REG_NB_FAN_SUPPORT); | 325 | ADM1029_REG_NB_FAN_SUPPORT); |
| 326 | /* 0x41 is Analog Devices */ | 326 | /* 0x41 is Analog Devices */ |
| 327 | if (man_id != 0x41 || (temp_devices_installed & 0xf9) != 0x01 || | 327 | if (man_id != 0x41 || (temp_devices_installed & 0xf9) != 0x01 || |
| 328 | nb_fan_support != 0x03) | 328 | nb_fan_support != 0x03) |
