Skip to content

Commit 6ee4bdc

Browse files
Xiaofei Tanrafaeljw
authored andcommitted
ACPI: dock: fix some coding style issues
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: Missing a blank line after declarations ERROR: spaces required around that ':' WARNING: Statements should start on a tabstop Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent d0fb66e commit 6ee4bdc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

drivers/acpi/dock.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ static void hotplug_dock_devices(struct dock_station *ds, u32 event)
271271

272272
if (!acpi_device_enumerated(adev)) {
273273
int ret = acpi_bus_scan(adev->handle);
274+
274275
if (ret)
275276
dev_dbg(&adev->dev, "scan error %d\n", -ret);
276277
}
@@ -502,6 +503,7 @@ static ssize_t flags_show(struct device *dev,
502503
struct device_attribute *attr, char *buf)
503504
{
504505
struct dock_station *dock_station = dev->platform_data;
506+
505507
return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags);
506508

507509
}
@@ -523,7 +525,7 @@ static ssize_t undock_store(struct device *dev, struct device_attribute *attr,
523525
begin_undock(dock_station);
524526
ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST);
525527
acpi_scan_lock_release();
526-
return ret ? ret: count;
528+
return ret ? ret : count;
527529
}
528530
static DEVICE_ATTR_WO(undock);
529531

@@ -535,10 +537,11 @@ static ssize_t uid_show(struct device *dev,
535537
{
536538
unsigned long long lbuf;
537539
struct dock_station *dock_station = dev->platform_data;
540+
538541
acpi_status status = acpi_evaluate_integer(dock_station->handle,
539542
"_UID", NULL, &lbuf);
540543
if (ACPI_FAILURE(status))
541-
return 0;
544+
return 0;
542545

543546
return snprintf(buf, PAGE_SIZE, "%llx\n", lbuf);
544547
}

0 commit comments

Comments
 (0)