From patchwork Sat Sep 4 17:54:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 12475711 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BEC1CC433EF for ; Sat, 4 Sep 2021 17:55:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9FC1560F3A for ; Sat, 4 Sep 2021 17:55:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237261AbhIDR4N (ORCPT ); Sat, 4 Sep 2021 13:56:13 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:43911 "EHLO mail-0201.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237247AbhIDR4N (ORCPT ); Sat, 4 Sep 2021 13:56:13 -0400 Date: Sat, 04 Sep 2021 17:54:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1630778108; bh=0UnM6i/0AVHZD2smX1zPrlIi3uvf19Ea4BSEvI4Y+jU=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=NbJTpKIl+ebTv6BZ7k7n4YxbH9fC+tT67MMI2PSODbpqxswR6WxDvScygppz1y+Vg UD+ZV4K1G/vO2zosoiEhvw4CQaurgSv12WNNEUFJAeaDkV7AjaNgOx8uiGS+ICjlA5 AC8hzz2BBTdgWOomaBesO0qVK5MvNS779NmBeFWw= To: Hans de Goede , Mark Gross , platform-driver-x86@vger.kernel.org From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= Reply-To: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= Subject: [RFC PATCH v1 02/30] platform/x86: wmi: fix checkpatch warnings Message-ID: <20210904175450.156801-3-pobrn@protonmail.com> In-Reply-To: <20210904175450.156801-1-pobrn@protonmail.com> References: <20210904175450.156801-1-pobrn@protonmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org Fix the following two checkpatch warnings: * "space required before the open parenthesis '('" * "that open brace { should be on the previous line" Signed-off-by: Barnabás Pőcze --- drivers/platform/x86/wmi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.33.0 diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 0b931629f0b0..73ed17a53af5 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -488,7 +488,7 @@ static void wmi_notify_debug(u32 value, void *context) return; pr_info("DEBUG Event "); - switch(obj->type) { + switch (obj->type) { case ACPI_TYPE_BUFFER: pr_cont("BUFFER_TYPE - length %d\n", obj->buffer.length); break; @@ -1277,8 +1277,7 @@ static void acpi_wmi_notify_handler(acpi_handle handle, u32 event, if (wblock->acpi_device->handle == handle && (block->flags & ACPI_WMI_EVENT) && - (block->notify_id == event)) - { + (block->notify_id == event)) { found_it = true; break; }