Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3391571iob; Sat, 7 May 2022 04:07:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuOYEU14KNQf8q57UCRRTNgsmvzv7s3KD4XCtPta2K4icbutKnGflsMCjOcFrXhpsObkTu X-Received: by 2002:a9d:66d7:0:b0:606:3cc2:4f9a with SMTP id t23-20020a9d66d7000000b006063cc24f9amr2608038otm.113.1651921621670; Sat, 07 May 2022 04:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651921621; cv=none; d=google.com; s=arc-20160816; b=owleyF2yU/Hkyjee18+HqOqjMYJkachobuDYBXZ1hHfCVk8Hqd51XZa4Oke+L9tgGP J4l81MXFDnvqtgDJZEC+TR+bvZ2y4y0kiOyHdKwMKDFOYGAtrD12Wt9tRPFpajXGK7OC JFZTVB0X+jwTQbR5xPSGsw9ig2kJREZcAn6/u+uTwY5fcWNueRjMngOdfXhTrhvape+T WdDq0/keyUPdufEnyiTJZK6w3cnP62twheZAsSfOXU+n92I4eAl8JGxERHYwJpqJUjHs O1qwc1LBgwY6SBrjzUaNbVuedVocfrz3lF9zaf6mecm7TIVoVbBj/Yrb/LdYxu2yJoMk 0YwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=nC6W8a6qKsChzlkK2pVqEzNOxfTALLGgiZco+DC/LTQ=; b=fQgaNi1Q/S+547/idbgld18tjrRy7AAK1/Ok43KYyE7nGxnPkZx6baGsx8yQFyDmqi h9C2xTwn3dcR+hWnF8bZa4aso3kaZpVeT/GRGsIxDAq7u/LoLqjHsUP9istOcrZsReQu xVmvBmUiCGLjfJgS+BB6UIdml+UkI7q8xKVClnMS6gbSHFVAQLgqBuK25UUo2ix9mvac Yr9vp8HeC8hGbQUyNqeYR2LJL/YRHqR5ODfuyMmYNcTv65YU0pGLBEYX9Wc467QyqcJD qeKAwwuTOWopmgXMEWzp5ePTyW70ERcVsY5nzXzvJkur1TiaNJN331k3zmik58wM0+aC qExQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v36-20020a056870b52400b000e942720fb4si4945044oap.167.2022.05.07.04.06.45; Sat, 07 May 2022 04:07:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345362AbiEFSiG (ORCPT + 99 others); Fri, 6 May 2022 14:38:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbiEFSiE (ORCPT ); Fri, 6 May 2022 14:38:04 -0400 Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C63006D845; Fri, 6 May 2022 11:34:20 -0700 (PDT) Received: by mail-yb1-f182.google.com with SMTP id y2so14311753ybi.7; Fri, 06 May 2022 11:34:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nC6W8a6qKsChzlkK2pVqEzNOxfTALLGgiZco+DC/LTQ=; b=PfWR4Uz9loLMGXh/LDsr/xU92RagjqklW9Sp2GW/0j5jmqHSY7UaJgg86vxPlbYq2M aoumjplGyHco2TFchSY0n70O++9Ci4EuMsdagkeO0GYs7aWyjhBDOrq7uQfOwa0kTLK5 TBQVny7fOYmE0zRDubeRVeLHIfNPO+7+Cw4w0mEu/fvTfbSr5BAwNk3+wJByk1hrIrfo kr7YrXLWwFRJ8EQX/YwutVwnDloZJIneuliFskBnoR6a09OMmg3ItWDnOY3iBYHq2Lgh IMEiHrTTAR9jIimfED5uUuyjWJkM5dYr/fn8kRfrotFTeT+uG2tdyRJjRxh96XLXPkAG pyYQ== X-Gm-Message-State: AOAM530tb5Lsp3J+HVuaU4VKaQimp2J+jmfZWuMDx1HwpFjfi7AiokWN zlinZAvccH4vNrj05xjE/xEnsR/a/4DuHXqF4D7Sj+hc X-Received: by 2002:a05:6902:352:b0:63e:94c:883c with SMTP id e18-20020a056902035200b0063e094c883cmr3307517ybs.365.1651862060042; Fri, 06 May 2022 11:34:20 -0700 (PDT) MIME-Version: 1.0 References: <20220425021407.486916-1-ian@linux.cowan.aero> In-Reply-To: <20220425021407.486916-1-ian@linux.cowan.aero> From: "Rafael J. Wysocki" Date: Fri, 6 May 2022 20:34:09 +0200 Message-ID: Subject: Re: [PATCH] drivers: acpi: clean up spaces to be consistent To: Ian Cowan Cc: "Rafael J. Wysocki" , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 25, 2022 at 4:14 AM Ian Cowan wrote: > > This cleans up a few line spaces so that it is consistent with the rest > of the file. There are a few places where a space was added before a > return and two spots where a double line space was made into one line > space. > > Signed-off-by: Ian Cowan > --- > drivers/acpi/ac.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c > index db487ff9dd1b..f8ec48cd7659 100644 > --- a/drivers/acpi/ac.c > +++ b/drivers/acpi/ac.c > @@ -32,7 +32,6 @@ MODULE_AUTHOR("Paul Diefenbaugh"); > MODULE_DESCRIPTION("ACPI AC Adapter Driver"); > MODULE_LICENSE("GPL"); > > - > static int acpi_ac_add(struct acpi_device *device); > static int acpi_ac_remove(struct acpi_device *device); > static void acpi_ac_notify(struct acpi_device *device, u32 event); > @@ -125,6 +124,7 @@ static int get_ac_property(struct power_supply *psy, > default: > return -EINVAL; > } > + > return 0; > } > > @@ -190,12 +190,14 @@ static int acpi_ac_battery_notify(struct notifier_block *nb, > static int __init thinkpad_e530_quirk(const struct dmi_system_id *d) > { > ac_sleep_before_get_state_ms = 1000; > + > return 0; > } > > static int __init ac_only_quirk(const struct dmi_system_id *d) > { > ac_only = 1; > + > return 0; > } I don't really think that it is useful to add empty lines in the two cases above. The rest of the patch is fine with me. > > @@ -286,6 +288,7 @@ static int acpi_ac_resume(struct device *dev) > return 0; > if (old_state != ac->state) > kobject_uevent(&ac->charger->dev.kobj, KOBJ_CHANGE); > + > return 0; > } > #else > @@ -296,7 +299,6 @@ static int acpi_ac_remove(struct acpi_device *device) > { > struct acpi_ac *ac = NULL; > > - > if (!device || !acpi_driver_data(device)) > return -EINVAL; > > -- > 2.35.1 >