Re: [PATCH v1] platform/x86: wmi: Switch to use new generic UUID API
From: Andy Lutomirski
Date: Fri Aug 04 2017 - 11:02:03 EST
> On Aug 2, 2017, at 9:28 AM, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> There are new types and helpers that are supposed to be used in new code.
>
> As a preparation to get rid of legacy types and API functions do
> the conversion here.
>
> While here, update Copyright to reflect this change along with previous
> one for the topic.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---
> drivers/platform/x86/wmi.c | 56 ++++++++++++++++++++++++----------------------
> 1 file changed, 29 insertions(+), 27 deletions(-)
>
> diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
> index e32ba575e8d9..7b8fac7067dc 100644
> --- a/drivers/platform/x86/wmi.c
> +++ b/drivers/platform/x86/wmi.c
> @@ -7,6 +7,8 @@
> * Copyright (C) 2001,2002 Richard Russon <ldm@xxxxxxxxxxx>
> * Copyright (c) 2001-2007 Anton Altaparmakov
> * Copyright (C) 2001,2002 Jakob Kemi <jakob.kemi@xxxxxxxxx>
> + * ...replaced by generic UUID API:
> + * Copyright (C) 2016,2017 Intel Corporation.
> *
> * WMI bus infrastructure by Andrew Lutomirski and Darren Hart:
> * Copyright (C) 2015 Andrew Lutomirski
> @@ -53,7 +55,7 @@ MODULE_LICENSE("GPL");
> static LIST_HEAD(wmi_block_list);
>
> struct guid_block {
> - char guid[16];
> + guid_t guid;
NAK. guid_block is a firmware interface, so opaque kernel types don't
belong in it.