From patchwork Sat Sep 4 17:54:53 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: 12475705 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=-7.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 3B846C433EF for ; Sat, 4 Sep 2021 17:55:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E60C960F3A for ; Sat, 4 Sep 2021 17:55:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237237AbhIDR4G (ORCPT ); Sat, 4 Sep 2021 13:56:06 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:31957 "EHLO mail-4322.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231181AbhIDR4F (ORCPT ); Sat, 4 Sep 2021 13:56:05 -0400 Date: Sat, 04 Sep 2021 17:54:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1630778102; bh=hGlARYLMDWEvCt+iTa0uRBcG6ID4jKfIEv+EEGdXiJo=; h=Date:To:From:Reply-To:Subject:From; b=xCJ0eVWHVN3etS7hu+2F120mVY/gDVuw0HQsp7iEohTNUBDrvRNeq3TqBC4D65mgf sd4gs6OCyIsGkpIy4NbhuUanHo/MFb3ljzXB9dVo80Ezn6m75rExljRV03GkkKx/3D +mMCdF1knGsqovMYceMH+CcFn1ZNwN4Qt45jP9vk= 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 00/30] platform/x86: wmi: minor improvements Message-ID: <20210904175450.156801-1-pobrn@protonmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org This patch series contains minor changes in the WMI bus, which aim to remove unnecessary code, get rid of duplication, and various style changes. Most of the patches should have no observable effect on the behaviour. Barnabás Pőcze (30): platform/x86: wmi: fix kernel doc platform/x86: wmi: fix checkpatch warnings platform/x86: wmi: remove commas platform/x86: wmi: remove unnecessary initialization platform/x86: wmi: remove unnecessary initializations platform/x86: wmi: remove unnecessary variable platform/x86: wmi: remove unnecessary argument platform/x86: wmi: remove unnecessary casts platform/x86: wmi: remove stray empty line platform/x86: wmi: remove unnecessary checks platform/x86: wmi: use BIT() macro platform/x86: wmi: use bool instead of int platform/x86: wmi: use dynamic debug to print data about events platform/x86: wmi: use guid_t and guid_equal() platform/x86: wmi: make GUID block packed platform/x86: wmi: use sysfs_emit() platform/x86: wmi: use sizeof() instead of hard-coding platform/x86: wmi: use !p to check for NULL platform/x86: wmi: use sizeof(*p) in allocation platform/x86: wmi: remove variable platform/x86: wmi: move variables platform/x86: wmi: align arguments of functions platform/x86: wmi: improve debug messages platform/x86: wmi: do not fail if disabling fails platform/x86: wmi: simplify error handling logic platform/x86: wmi: introduce helper to convert driver to WMI driver platform/x86: wmi: introduce helper to generate method names platform/x86: wmi: introduce helper to determine type platform/x86: wmi: introduce helper to retrieve event data platform/x86: wmi: more detailed error reporting in find_guid() drivers/platform/x86/wmi.c | 378 +++++++++++++++++++------------------ 1 file changed, 197 insertions(+), 181 deletions(-) --- 2.33.0