Skip to content

Commit a508d95

Browse files
Betty Dallrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 6c02440 commit a508d95

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

drivers/acpi/device_sysfs.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static ssize_t acpi_object_path(acpi_handle handle, char *buf)
3535
if (result)
3636
return result;
3737

38-
result = sprintf(buf, "%s\n", (char*)path.pointer);
38+
result = sprintf(buf, "%s\n", (char *)path.pointer);
3939
kfree(path.pointer);
4040
return result;
4141
}
@@ -333,7 +333,8 @@ int acpi_device_modalias(struct device *dev, char *buf, int size)
333333
EXPORT_SYMBOL_GPL(acpi_device_modalias);
334334

335335
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+
{
337338
return __acpi_device_modalias(to_acpi_device(dev), buf, 1024);
338339
}
339340
static DEVICE_ATTR(modalias, 0444, acpi_device_modalias_show, NULL);
@@ -397,7 +398,8 @@ acpi_eject_store(struct device *d, struct device_attribute *attr,
397398
static DEVICE_ATTR(eject, 0200, NULL, acpi_eject_store);
398399

399400
static ssize_t
400-
acpi_device_hid_show(struct device *dev, struct device_attribute *attr, char *buf) {
401+
acpi_device_hid_show(struct device *dev, struct device_attribute *attr, char *buf)
402+
{
401403
struct acpi_device *acpi_dev = to_acpi_device(dev);
402404

403405
return sprintf(buf, "%s\n", acpi_device_hid(acpi_dev));
@@ -568,10 +570,10 @@ int acpi_device_setup_files(struct acpi_device *dev)
568570
goto end;
569571
}
570572

571-
/*
572-
* If device has _EJ0, 'eject' file is created that is used to trigger
573-
* hot-removal function from userland.
574-
*/
573+
/*
574+
* If device has _EJ0, 'eject' file is created that is used to trigger
575+
* hot-removal function from userland.
576+
*/
575577
if (acpi_has_method(dev->handle, "_EJ0")) {
576578
result = device_create_file(&dev->dev, &dev_attr_eject);
577579
if (result)

0 commit comments

Comments
 (0)