Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2047284pxf; Sat, 27 Mar 2021 01:06:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp9NXRTh8DcXxWVgvWl+uC4gTJrFs7zTrbJgMf8SuB3XBWtHtTOPjeshZtjS3jIJwLgV2W X-Received: by 2002:a17:906:6d8e:: with SMTP id h14mr19259047ejt.410.1616832399444; Sat, 27 Mar 2021 01:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616832399; cv=none; d=google.com; s=arc-20160816; b=dDKDo5sdZfyCib82SD3xAJqtGXvdi9KCV6IbfnW8JLO9OFSXxDNkTskwdUYNUNYME8 nlR0JFzsOHqY4zC0AJQEBEeX11sUiFZz8Zgamr5MLQ71B72Uo1+ny7hL0VfRlk0ZqIR2 O5lyES+NB1rfNffy6nRBY8KRLd550IDJUNsoxYXndbEEpooB9SkxFsbqgh4IYpkmdZWx ScqGnb2zbkJItIzO8GGaEiwsenolk+lWVOlX89s9xV7TiDzYzanh20uBJn1fKhckuAGJ X6zvWeiaJDcdM4jWFjUly+W9dDb65vRp03FQPmq7bUi0/LN8GdXf6+jHusAn7N+4imAI p4og== 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=Qsix5sV4y1/mcfp3Xq5gJE/zzCs1daMbioj6VgKmlwrvJgdBBh36fafLX2bjVgMiO8 oDKLyKnOloT07tPqtrUevdM0KALVi/r5Ifc5VTGyjzatqf2VpbNBYADS83PWxFBhcjIH t/+cDryDUOz//kzF4NiVVvTP2Qkpk25QZiZ5gN0xPQTKs5lSU6AUVUCcLS1Eda9VyAHC QA8lPU8cVC0eGGN/uXhO1KwPRP+XgXxPrYCEMovT78YEvE6nWBnKEVhq5ttIM7HOqmkU dIB8MKdGwqLbljfQwD2PP3p8PeyfDRvt5I9mmv0NXi86ahAa3C3Yr2XG6jBSWUjKG7Rl ez5A== 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 da5si4671376edb.565.2021.03.27.01.06.17; Sat, 27 Mar 2021 01:06:39 -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 S231523AbhC0Htv (ORCPT + 99 others); Sat, 27 Mar 2021 03:49:51 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:15345 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230350AbhC0HtS (ORCPT ); Sat, 27 Mar 2021 03:49:18 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4F6rXK5Brlz93yk; Sat, 27 Mar 2021 15:47:13 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 15:49:06 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH v2 14/15] ACPI: sysfs: fix some coding style issues Date: Sat, 27 Mar 2021 15:46:32 +0800 Message-ID: <1616831193-17920-15-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616831193-17920-1-git-send-email-tanxiaofei@huawei.com> References: <1616831193-17920-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