X86 platform drivers
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	"Mark Gross" <markgross@kernel.org>
Cc: platform-driver-x86@vger.kernel.org, kernel@pengutronix.de
Subject: Re: [PATCH] platform/x86: wmi: Drop forward declaration of static functions
Date: Mon, 19 Sep 2022 13:56:37 +0100	[thread overview]
Message-ID: <ddad44a9-e228-e492-9ec9-e6be32ad8e15@redhat.com> (raw)
In-Reply-To: <20220919122213.852322-1-u.kleine-koenig@pengutronix.de>

Hi,

On 9/19/22 13:22, Uwe Kleine-König wrote:
> Usually it's not necessary to declare static functions if the symbols are
> in the right order. Moving the definition of acpi_wmi_driver down in the
> compilation unit allows to drop two such declarations.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Thank you for your patch, I've applied this patch to my review-hans 
branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans

Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.

Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.

Regards,

Hans


> ---
>  drivers/platform/x86/wmi.c | 21 +++++++++------------
>  1 file changed, 9 insertions(+), 12 deletions(-)
> 
> diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
> index aed293b5af81..dbc535b772b3 100644
> --- a/drivers/platform/x86/wmi.c
> +++ b/drivers/platform/x86/wmi.c
> @@ -95,9 +95,6 @@ module_param(debug_dump_wdg, bool, 0444);
>  MODULE_PARM_DESC(debug_dump_wdg,
>  		 "Dump available WMI interfaces [0/1]");
>  
> -static int acpi_wmi_remove(struct platform_device *device);
> -static int acpi_wmi_probe(struct platform_device *device);
> -
>  static const struct acpi_device_id wmi_device_ids[] = {
>  	{"PNP0C14", 0},
>  	{"pnp0c14", 0},
> @@ -105,15 +102,6 @@ static const struct acpi_device_id wmi_device_ids[] = {
>  };
>  MODULE_DEVICE_TABLE(acpi, wmi_device_ids);
>  
> -static struct platform_driver acpi_wmi_driver = {
> -	.driver = {
> -		.name = "acpi-wmi",
> -		.acpi_match_table = wmi_device_ids,
> -	},
> -	.probe = acpi_wmi_probe,
> -	.remove = acpi_wmi_remove,
> -};
> -
>  /*
>   * GUID parsing functions
>   */
> @@ -1449,6 +1437,15 @@ void wmi_driver_unregister(struct wmi_driver *driver)
>  }
>  EXPORT_SYMBOL(wmi_driver_unregister);
>  
> +static struct platform_driver acpi_wmi_driver = {
> +	.driver = {
> +		.name = "acpi-wmi",
> +		.acpi_match_table = wmi_device_ids,
> +	},
> +	.probe = acpi_wmi_probe,
> +	.remove = acpi_wmi_remove,
> +};
> +
>  static int __init acpi_wmi_init(void)
>  {
>  	int error;
> 
> base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868


      reply	other threads:[~2022-09-19 12:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-19 12:22 [PATCH] platform/x86: wmi: Drop forward declaration of static functions Uwe Kleine-König
2022-09-19 12:56 ` Hans de Goede [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ddad44a9-e228-e492-9ec9-e6be32ad8e15@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=kernel@pengutronix.de \
    --cc=markgross@kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=u.kleine-koenig@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox