Skip to content

Commit 6f27668

Browse files
committed
Style changes from checkpatch.
1 parent 5363119 commit 6f27668

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

drivers/platform/surface/surface_fan.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ static int surface_fan_hwmon_read(struct device *dev,
5757
switch (attr) {
5858
case hwmon_fan_input:
5959
res = __ssam_fan_rpm_get(sdev, &value);
60-
if (res) {
60+
if (res)
6161
return -EIO;
62-
}
6362
*val = le16_to_cpu(value);
6463
return 0;
6564
case hwmon_fan_min:
@@ -98,11 +97,11 @@ static int surface_fan_probe(struct ssam_device *sdev)
9897
{
9998
struct device *hdev;
10099

101-
hdev = devm_hwmon_device_register_with_info(
102-
&sdev->dev, "fan", sdev, &surface_fan_chip_info, NULL);
103-
if (IS_ERR(hdev)) {
100+
hdev = devm_hwmon_device_register_with_info(&sdev->dev, "fan", sdev,
101+
&surface_fan_chip_info,
102+
NULL);
103+
if (IS_ERR(hdev))
104104
return PTR_ERR(hdev);
105-
}
106105

107106
ssam_device_set_drvdata(sdev, sdev);
108107

0 commit comments

Comments
 (0)