Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2009286pxf; Fri, 26 Mar 2021 23:53:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMX6nKk+hL6sOShfmLPOA1mSj0SX58AwAatxDhTqTdW34DLyJqFc5dqldddt3I0usdYG5f X-Received: by 2002:a17:906:ae8d:: with SMTP id md13mr19004515ejb.275.1616828006138; Fri, 26 Mar 2021 23:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616828006; cv=none; d=google.com; s=arc-20160816; b=t5oORN7tOljogS7oZAXIXDXr9w4z3rM5AxKTZ5PtId0p/eI1cwHOkTgwR6qvgJsPaw ng5KUWxQYd5vCEZL/Mg5BrZhC5aKJ9nC4qtnypSlpLnjDKtvvb/bkN3+dP90CWk9sAOP DISw0qE9OXMsSez2RTxV57zYutAT/NQ0mL3LnmCRoF7E8cWZeTZ0kriWV71JVwkwtXTd PrBO/L1ast/ogOykGnlTl+7GMUZ1+SP+um20N8NBj6Pg1yzUrtE1pAO2EHSRaHcifY53 XQRXfc5KUzUA7+rgeP4BVuetmKV9BBkyXCZgBj9AITvofRq0ZOJ4voxBgYX33j+XH7BI 8t8g== 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=EgxZMnsGf6DF85ofaPh+KWPGSHJUE7k6/u3PC9qHPdcc0DlAtglvRImgxbSTU0AML3 taocFVMv8Ex5Dt9avcu9XYPtbq97xggkUrklO3H9EblrVTWqpQURlmCnk1XVijlOB0Xa g90sNNEWxsD++OikZNpM9KoAKKUW0+23gvxmwAHVlthpEkS3GkASyj4WpqT/9tNsznjZ c3Z35k4cQXKEOm0Y9dOZg7RADXUPajECeoxVHgN/hMktPXI1cdN51Bm6q1fT0QIpcksj D+c9UbWUxYUw3HxXR/EgK1jWFCPe2FfuNImgc7FNzJWfyGMc36NYiXcqms5baesMS6We icmA== 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 m24si8797628ejc.193.2021.03.26.23.53.03; Fri, 26 Mar 2021 23:53:26 -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 S231393AbhC0GoX (ORCPT + 99 others); Sat, 27 Mar 2021 02:44:23 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:15327 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbhC0Gn7 (ORCPT ); Sat, 27 Mar 2021 02:43:59 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4F6q4l4Lxwz93nK; Sat, 27 Mar 2021 14:41:43 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 14:43:38 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH 14/15] ACPI: device_sysfs: fix some coding style issues Date: Sat, 27 Mar 2021 14:40:55 +0800 Message-ID: <1616827256-51840-15-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616827256-51840-1-git-send-email-tanxiaofei@huawei.com> References: <1616827256-51840-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