Skip to content

Commit d0fb66e

Browse files
Xiaofei Tanrafaeljw
authored andcommitted
ACPI: sysfs: fix some coding style issues
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: Missing a blank line after declarations WARNING: Block comments should align the * on each line ERROR: open brace '{' following function definitions go on the next line Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 3da8236 commit d0fb66e

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

drivers/acpi/device_sysfs.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ static const struct sysfs_ops acpi_data_node_sysfs_ops = {
7373
static void acpi_data_node_release(struct kobject *kobj)
7474
{
7575
struct acpi_data_node *dn = to_data_node(kobj);
76+
7677
complete(&dn->kobj_done);
7778
}
7879

@@ -130,7 +131,7 @@ static void acpi_hide_nondev_subnodes(struct acpi_device_data *data)
130131
* Return: 0: no _HID and no _CID
131132
* -EINVAL: output error
132133
* -ENOMEM: output is truncated
133-
*/
134+
*/
134135
static int create_pnp_modalias(struct acpi_device *acpi_dev, char *modalias,
135136
int size)
136137
{
@@ -431,7 +432,8 @@ static DEVICE_ATTR_RO(path);
431432
/* sysfs file that shows description text from the ACPI _STR method */
432433
static ssize_t description_show(struct device *dev,
433434
struct device_attribute *attr,
434-
char *buf) {
435+
char *buf)
436+
{
435437
struct acpi_device *acpi_dev = to_acpi_device(dev);
436438
int result;
437439

@@ -456,7 +458,8 @@ static DEVICE_ATTR_RO(description);
456458

457459
static ssize_t
458460
sun_show(struct device *dev, struct device_attribute *attr,
459-
char *buf) {
461+
char *buf)
462+
{
460463
struct acpi_device *acpi_dev = to_acpi_device(dev);
461464
acpi_status status;
462465
unsigned long long sun;
@@ -471,7 +474,8 @@ static DEVICE_ATTR_RO(sun);
471474

472475
static ssize_t
473476
hrv_show(struct device *dev, struct device_attribute *attr,
474-
char *buf) {
477+
char *buf)
478+
{
475479
struct acpi_device *acpi_dev = to_acpi_device(dev);
476480
acpi_status status;
477481
unsigned long long hrv;
@@ -485,7 +489,8 @@ hrv_show(struct device *dev, struct device_attribute *attr,
485489
static DEVICE_ATTR_RO(hrv);
486490

487491
static ssize_t status_show(struct device *dev, struct device_attribute *attr,
488-
char *buf) {
492+
char *buf)
493+
{
489494
struct acpi_device *acpi_dev = to_acpi_device(dev);
490495
acpi_status status;
491496
unsigned long long sta;

0 commit comments

Comments
 (0)