Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2008021pxf; Fri, 26 Mar 2021 23:49:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7iOd0FpObT9FG+6lNIrLAY0LCOxWnThnenMwEaOcU0WAINaNHCEV381XQvj7po7EAKKMh X-Received: by 2002:a05:6402:1051:: with SMTP id e17mr18979159edu.42.1616827778521; Fri, 26 Mar 2021 23:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616827778; cv=none; d=google.com; s=arc-20160816; b=ajkc5Hmc0OJnxoUoI3APJhGEq9pimhkRCpwMnYDRxuGxRTgWAleROjgOfrf1Zc7Gj6 B4HFK82o28NOYp0xRjzftZLxaDP6gQKbTFgmZ/oBZTP2iyg7akepWtB37fxrV7QqC4Zo OgmturhObdIVv5f/C9cGQ137iG4M7P/+a3T7R7Ee5CWptXOTtHO5qwqeN7AtlACBFg8V SnFyzgkP8G98C42PNrf4voe8+iHGtw3xqumz/nPKgBXmg4vosYv+ry7OQqDtrWdM/Ehp 05fr//+XpnJ9LrgD3+ZGvFixZ7LiCYUIiSBmsN8QC2W3iiJG95nYkgYdKlRKq61G5A+G IS9A== 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=GLA3C5VpTHZrp2nSEyf/CVBry9iRwxoz/a05C2NqAVE=; b=OBcLe2D8Jvsv763wiSxlFvyV01LgvncifdXurmTTKOj/52R8IK9oulroozCUNmuJTN qpT/moDfBjZd8pCPsaqTV23D0emSlicgQ2E9kczONAcJ1BwKWYObT9x32xfntX2ACjK5 9yqFkGlAecnxdvWwi4VRn2uozAp78ORnNCV/SLZB6CvW53WM3IQ6qq4wqRKYPx97UfFC LoPJl34fDBGUudqtxlxCKJYw7ZaPQJPgP9TMm2YjrJkHWqnZKEfqjBKvcaxWBa9Z8HXb 5jbaWCyB+b04NYzU9BKhIqzm2ki23PmstVpM0MSbZrUXV7sygHVWi6Rac/JMPbcRS7ng 2nbw== 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 o11si8596933eja.149.2021.03.26.23.49.16; Fri, 26 Mar 2021 23:49:38 -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 S231342AbhC0GoU (ORCPT + 99 others); Sat, 27 Mar 2021 02:44:20 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:15330 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231222AbhC0Gn7 (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 4F6q4l5BQ5z93nN; 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:36 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH 06/15] ACPI: acpi_lpss: fix some coding style issues Date: Sat, 27 Mar 2021 14:40:47 +0800 Message-ID: <1616827256-51840-7-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: simple_strtol is obsolete, use kstrtol instead WARNING: Missing a blank line after declarations Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_lpss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c index be73974..2df231e 100644 --- a/drivers/acpi/acpi_lpss.c +++ b/drivers/acpi/acpi_lpss.c @@ -187,7 +187,7 @@ static void byt_i2c_setup(struct lpss_private_data *pdata) /* Expected to always be true, but better safe then sorry */ if (uid_str) - uid = simple_strtol(uid_str, NULL, 10); + uid = kstrtol(uid_str, NULL, 10); /* Detect I2C bus shared with PUNIT and ignore its d3 status */ status = acpi_evaluate_integer(handle, "_SEM", NULL, &shared_host); @@ -377,6 +377,7 @@ static const struct acpi_device_id acpi_lpss_device_ids[] = { static int is_memory(struct acpi_resource *res, void *not_used) { struct resource r; + return !acpi_dev_resource_memory(res, &r); } @@ -1200,6 +1201,7 @@ static int acpi_lpss_poweroff_noirq(struct device *dev) if (pdata->dev_desc->resume_from_noirq) { /* This is analogous to the acpi_lpss_suspend_noirq() case. */ int ret = acpi_lpss_do_poweroff_late(dev); + if (ret) return ret; } -- 2.8.1