Commit 6ee4bdc2 authored by Xiaofei Tan's avatar Xiaofei Tan Committed by Rafael J. Wysocki
Browse files

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: default avatarXiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent d0fb66e9
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -271,6 +271,7 @@ static void hotplug_dock_devices(struct dock_station *ds, u32 event)

		if (!acpi_device_enumerated(adev)) {
			int ret = acpi_bus_scan(adev->handle);

			if (ret)
				dev_dbg(&adev->dev, "scan error %d\n", -ret);
		}
@@ -502,6 +503,7 @@ static ssize_t flags_show(struct device *dev,
			  struct device_attribute *attr, char *buf)
{
	struct dock_station *dock_station = dev->platform_data;

	return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags);

}
@@ -535,6 +537,7 @@ static ssize_t uid_show(struct device *dev,
{
	unsigned long long lbuf;
	struct dock_station *dock_station = dev->platform_data;

	acpi_status status = acpi_evaluate_integer(dock_station->handle,
					"_UID", NULL, &lbuf);
	if (ACPI_FAILURE(status))