[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a2362908-feab-416c-b5ae-13d560089ee6@gmx.de>
Date: Thu, 28 Mar 2024 00:35:06 +0100
From: Armin Wolf <W_Armin@....de>
To: Andy Shevchenko <andy.shevchenko@...il.com>,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Hans de Goede <hdegoede@...hat.com>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Subject: Re: [PATCH v1 1/1] platform/x86: quickstart: Miscellaneous
improvements
Am 27.03.24 um 22:52 schrieb Andy Shevchenko:
> 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 <andy.shevchenko@...il.com>
> ---
> 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 <W_Armin@....de>
> * Copyright (C) 2022 Arvid Norlander <lkml@...apal.se>
> @@ -10,15 +10,18 @@
> * <https://archive.org/details/microsoft-acpi-dirapplaunch>
> */
>
> -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> -
Hi,
that is the reason for removing this?
> #include <linux/acpi.h>
> +#include <linux/device.h>
> +#include <linux/errno.h>
> #include <linux/init.h>
> #include <linux/input.h>
> #include <linux/input/sparse-keymap.h>
> -#include <linux/kernel.h>
> +#include <linux/mod_devicetable.h>
> #include <linux/module.h>
> #include <linux/platform_device.h>
> +#include <linux/pm_wakeup.h>
> +#include <linux/printk.h>
> +#include <linux/slab.h>
> #include <linux/sysfs.h>
> #include <linux/types.h>
>
> @@ -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);
Powered by blists - more mailing lists