Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp59552lqh; Wed, 27 Mar 2024 14:53:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcjjnBhWWEmjn4JA7dv7S6eynaMzVoXTB1sF6FnCf8HJiugeiCh9r/thHlXrWkBiGoNmGskpuAbFK6+oVQg0XChMYHsk/VzqFp4CKDeQ== X-Google-Smtp-Source: AGHT+IGjuTrCu5toNymS459Es9E+RS53ETdXSPeGqqPiy8DJqArMe37/BVndub/P0ZQ56rZx8PJw X-Received: by 2002:a05:6512:1d0:b0:512:cda1:9bab with SMTP id f16-20020a05651201d000b00512cda19babmr552385lfp.13.1711576409371; Wed, 27 Mar 2024 14:53:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711576409; cv=pass; d=google.com; s=arc-20160816; b=bQFxBtuIZwo2jxVYXO3R1tvzueN7x5Uo3Bn8teotvkFlvTxc9RJQOMRNbiCwyumuT9 i1GqEoGU8JeywQk20/RVVJKETz7U1rKG/REmbW4H8g8/lsLQV9+qbkCByG4sBS+hvWQT 0JRF8L1IvfbcfpqPUaFDKlceiaoIPgICIqac6kSTHLlCUiOjn5LLcFe7ww3o7SJChEEO fDG4EVxudX6UwuVdiHyjJMi+EXQYGBRyN4vCUe8GsDo0JmUtGzM0PxVxg4K6YdGHpg8P M912pfB156J8QyNHqLr9ANP9VKAB39GjyoRU4VGWNSIdEESwG/n375Q9MdsiUFFmOIQT lgsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=pKFCKNae5Ijgkl3iAzSx41EyoAGHP4z5pDjGKl2fwEA=; fh=Ale/zv1Z6G6in6SNTxU4wso3tbek75LmnqPxPdBl9Yk=; b=ejafZR/5YJivRsVUFDLAVAWLyt9JLagaqvew6sw/K4WvkT4IbE7bfUrBO3A89+QTZS 59fbvmVsLNLDZ831k74QcraHzMz8jJFy0qoHBt7X6ZYHM0bKG6REev8mlv0+CR6pXggI CMkuNrf0yE37MXrVCucujY78iX5qIQ3aI+DxEvwp2zZgzSVxeWEQ4Eii1QvFY+g52M4h 7QrHWIMOHHTVqDljfbgCfUmxZ7x4tRBw2ww7dJ0dtMaHENMITpYp6fRYrotdsjO8qYKs twkbRkMa1RtMkT31SrJX2Rp0ceXj3Gb9dSkkh1Vpn6KPGFjH7LQRzKKO0B9XZSnAi1cf +t6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-122060-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122060-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v21-20020a50a455000000b0056bfbb09bcasi45111edb.350.2024.03.27.14.53.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 14:53:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122060-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-122060-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122060-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 19FA51F29E6E for ; Wed, 27 Mar 2024 21:53:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26AE915358A; Wed, 27 Mar 2024 21:53:23 +0000 (UTC) Received: from fgw23-7.mail.saunalahti.fi (fgw23-7.mail.saunalahti.fi [62.142.5.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B91C14F9E4 for ; Wed, 27 Mar 2024 21:53:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.84 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711576402; cv=none; b=kvF46SwDAhX8Vtd/9PPd1seV8NJysmefWul+vLvvYXt3q8aJZPcpMhSbmEXfuN7HmKRL0DBUt1uFIQYW/DvCl2nGa2c2SHUfSf9lQxpsPiVtTud3kbk+F3m8qmOu+wmgX9+N0uqEc3t+TvLvhERIr6/GZ5dJCgbnrxJkejWywmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711576402; c=relaxed/simple; bh=2v7wc9fQwYf7d5X1GIFIUQt0lyBTBGde+QP7rENxUrY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OV1E7A/VTcwhLcZJYEqKb9WKibL24QAcLCpUR1yKcsUacxvLGxoxfi4ehnI2OyVV8+FeyTom0eOsq2UNLa0SR/ij9+F7QXfwYEebVTOc55U6uPS8SfNtp+9C452JDzLYfc0cGzT+Pdl4mT7pSZ4uZDVDYmnoujZYhqFDyKRigbQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-217.elisa-laajakaista.fi [88.113.26.217]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id 4324b3c1-ec84-11ee-b972-005056bdfda7; Wed, 27 Mar 2024 23:52:10 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , Armin Wolf , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH v1 1/1] platform/x86: quickstart: Miscellaneous improvements Date: Wed, 27 Mar 2024 23:52:08 +0200 Message-ID: <20240327215208.649020-1-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There is a mix of a few improvements to the driver. I have done this instead of review, so it can quickly be folded into the original code (partially or fully). Signed-off-by: Andy Shevchenko --- drivers/platform/x86/quickstart.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/platform/x86/quickstart.c b/drivers/platform/x86/quickstart.c index ba3a7a25dda70..f686942662ccc 100644 --- a/drivers/platform/x86/quickstart.c +++ b/drivers/platform/x86/quickstart.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* - * quickstart.c - ACPI Direct App Launch driver + * ACPI Direct App Launch driver * * Copyright (C) 2024 Armin Wolf * Copyright (C) 2022 Arvid Norlander @@ -10,15 +10,18 @@ * */ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include +#include +#include #include #include #include -#include +#include #include #include +#include +#include +#include #include #include @@ -165,7 +168,8 @@ static int quickstart_probe(struct platform_device *pdev) data->dev = &pdev->dev; dev_set_drvdata(&pdev->dev, data); - /* We have to initialize the device wakeup before evaluating GHID because + /* + * We have to initialize the device wakeup before evaluating GHID because * doing so will notify the device if the button was used to wake the machine * from S5. */ @@ -202,7 +206,7 @@ static int quickstart_probe(struct platform_device *pdev) } static const struct acpi_device_id quickstart_device_ids[] = { - { "PNP0C32", 0 }, + { "PNP0C32" }, { } }; MODULE_DEVICE_TABLE(acpi, quickstart_device_ids); -- 2.44.0