Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI / device_sysfs: Clean up checkpatch errors

Cleaning up two existing checkpatch errors (and 2 warnings) in
device_sysfs.c since the file is being changed.

The change in acpi_device_setup_files() is changing spaces to a tab.

Signed-off-by: Betty Dall <betty.dall@hpe.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Betty Dall and committed by
Rafael J. Wysocki
a508d954 6c024409

+9 -7
+9 -7
drivers/acpi/device_sysfs.c
··· 35 35 if (result) 36 36 return result; 37 37 38 - result = sprintf(buf, "%s\n", (char*)path.pointer); 38 + result = sprintf(buf, "%s\n", (char *)path.pointer); 39 39 kfree(path.pointer); 40 40 return result; 41 41 } ··· 333 333 EXPORT_SYMBOL_GPL(acpi_device_modalias); 334 334 335 335 static ssize_t 336 - acpi_device_modalias_show(struct device *dev, struct device_attribute *attr, char *buf) { 336 + acpi_device_modalias_show(struct device *dev, struct device_attribute *attr, char *buf) 337 + { 337 338 return __acpi_device_modalias(to_acpi_device(dev), buf, 1024); 338 339 } 339 340 static DEVICE_ATTR(modalias, 0444, acpi_device_modalias_show, NULL); ··· 398 397 static DEVICE_ATTR(eject, 0200, NULL, acpi_eject_store); 399 398 400 399 static ssize_t 401 - acpi_device_hid_show(struct device *dev, struct device_attribute *attr, char *buf) { 400 + acpi_device_hid_show(struct device *dev, struct device_attribute *attr, char *buf) 401 + { 402 402 struct acpi_device *acpi_dev = to_acpi_device(dev); 403 403 404 404 return sprintf(buf, "%s\n", acpi_device_hid(acpi_dev)); ··· 570 568 goto end; 571 569 } 572 570 573 - /* 574 - * If device has _EJ0, 'eject' file is created that is used to trigger 575 - * hot-removal function from userland. 576 - */ 571 + /* 572 + * If device has _EJ0, 'eject' file is created that is used to trigger 573 + * hot-removal function from userland. 574 + */ 577 575 if (acpi_has_method(dev->handle, "_EJ0")) { 578 576 result = device_create_file(&dev->dev, &dev_attr_eject); 579 577 if (result)