Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2198753pxf; Sat, 27 Mar 2021 05:12:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtqfXXFNeagLpqQk19DDTQbijz213tZnuNVd8SCpNfYoaFTPOcWXNEbizswmKLrVCLJxgZ X-Received: by 2002:a17:907:7699:: with SMTP id jv25mr19387967ejc.363.1616847166242; Sat, 27 Mar 2021 05:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616847166; cv=none; d=google.com; s=arc-20160816; b=d1CCRrhoiR8E8S1vrJjwU63FhyYC+7KBX+oltyg85ZTIMvrpRG0How1QeawZFoRfm5 vrv2zCuTgvUQ82UGSWyhsfyaxHdLvFPr9mv+QDacJ/fBBqN6laF75Jge7vbddVK8FwTI jkI4pNYjXgcIHeX2PN+nWjyLKX1PemmMczVlB0rAwo4D6x/S7zZ8JbjstVTRL4aT5IP5 nJ+Ptrfc0GBUCR6+bDebN1Ih9LudXnwMyCziaW+p5LacuHLG4l6QEa3HM5r5HiFG2oEa QgcF3QbZzHOXdSQ1GAriaBWPT0DDz0X68oWkIgMxwS45QKv8AszmphUP2vpy/m1FJLKV 1Otg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=wqpEe2eIJd6CoY6Ct/t8OC+F8nHFuVNFKUupKsgKBT4=; b=kEpmmLYKEN3WxxIMcUpZuFBCCDtP9WgLqCtmv4X9XMEMq46nUgtltqkEVHtvtfq6r8 IXtkL1sh1E8iOOaJrLt7enBpfQsj4zlQq/2OsUzjnr9Af6boxuwsDHNOtD6IgJd723v4 ltecSeTdtpdP9xNEkyynDi32EFMYpBsZemtQFL19TdfxaZF4/osys07ugB33Gepz4W74 570K40ReRuzlD4EzuDVuMnf36cHYcAXDtMxhddK6ns45J/42R+mmkPSJV66wvvEFTX52 ++722dj7IzcZFGnI9ocWfbx7CGN2a2CYyCr6jf13FAfFAcZJIYy2/71R2RZ9sWC68rTf ZWfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga18si8860795ejb.632.2021.03.27.05.12.23; Sat, 27 Mar 2021 05:12:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230415AbhC0ML2 (ORCPT + 99 others); Sat, 27 Mar 2021 08:11:28 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:15017 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbhC0MLO (ORCPT ); Sat, 27 Mar 2021 08:11:14 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F6yKv1mQtzPt3b; Sat, 27 Mar 2021 20:08:35 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 20:11:02 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH v3 11/12] ACPI: sysfs: fix some coding style issues Date: Sat, 27 Mar 2021 20:08:23 +0800 Message-ID: <1616846904-25719-12-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616846904-25719-1-git-send-email-tanxiaofei@huawei.com> References: <1616846904-25719-1-git-send-email-tanxiaofei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/acpi/device_sysfs.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/device_sysfs.c index da4ff2a..a07d4ad 100644 --- a/drivers/acpi/device_sysfs.c +++ b/drivers/acpi/device_sysfs.c @@ -73,6 +73,7 @@ static const struct sysfs_ops acpi_data_node_sysfs_ops = { static void acpi_data_node_release(struct kobject *kobj) { struct acpi_data_node *dn = to_data_node(kobj); + complete(&dn->kobj_done); } @@ -130,7 +131,7 @@ static void acpi_hide_nondev_subnodes(struct acpi_device_data *data) * Return: 0: no _HID and no _CID * -EINVAL: output error * -ENOMEM: output is truncated -*/ + */ static int create_pnp_modalias(struct acpi_device *acpi_dev, char *modalias, int size) { @@ -431,7 +432,8 @@ static DEVICE_ATTR_RO(path); /* sysfs file that shows description text from the ACPI _STR method */ static ssize_t description_show(struct device *dev, struct device_attribute *attr, - char *buf) { + char *buf) +{ struct acpi_device *acpi_dev = to_acpi_device(dev); int result; @@ -456,7 +458,8 @@ static DEVICE_ATTR_RO(description); static ssize_t sun_show(struct device *dev, struct device_attribute *attr, - char *buf) { + char *buf) +{ struct acpi_device *acpi_dev = to_acpi_device(dev); acpi_status status; unsigned long long sun; @@ -471,7 +474,8 @@ static DEVICE_ATTR_RO(sun); static ssize_t hrv_show(struct device *dev, struct device_attribute *attr, - char *buf) { + char *buf) +{ struct acpi_device *acpi_dev = to_acpi_device(dev); acpi_status status; unsigned long long hrv; @@ -485,7 +489,8 @@ hrv_show(struct device *dev, struct device_attribute *attr, static DEVICE_ATTR_RO(hrv); static ssize_t status_show(struct device *dev, struct device_attribute *attr, - char *buf) { + char *buf) +{ struct acpi_device *acpi_dev = to_acpi_device(dev); acpi_status status; unsigned long long sta; -- 2.8.1