All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: aaeon.asus@gmail.com, Hans de Goede <hdegoede@redhat.com>
Cc: "open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
	AceLan Kao <acelan.kao@canonical.com>,
	Kunyang_Fan <kunyang_fan@asus.com>
Subject: Re: [PATCH 1/5] mfd: Add support for IO functions of AAEON devices
Date: Tue, 25 May 2021 11:01:28 +0300	[thread overview]
Message-ID: <CAHp75VfuZNPVi4Oy_JxQB-uu0RNkvMb1sK2bz4-aG_QipNsRKw@mail.gmail.com> (raw)
In-Reply-To: <20210525054149.1792-1-kunyang_fan@asus.com>

+Cc: Hans (dunno if it's something you would like to be informed of)

On Tue, May 25, 2021 at 8:42 AM <aaeon.asus@gmail.com> wrote:
>
> From: Kunyang_Fan <kunyang_fan@asus.com>
>
> This adds the supports for multiple IO functions of the
> AAEON x86 devices and makes use of the WMI interface to
> control the these IO devices including:
>
> - GPIO
> - LED
> - Watchdog
> - HWMON
>
> It also adds the mfd child device drivers to support
> the above IO functions.

Do I miss the cover letter?

...

> +config MFD_AAEON
> +       tristate "AAEON WMI MFD devices"
> +       depends on ASUS_WMI
> +       help
> +         Say yes here to support mltiple IO devices on Single Board Computers

multiple

> +         produced by AAEON.
> +
> +         This driver leverages the ASUS WMI interface to access device
> +         resources.

I'm wondering should it be some kind of WMI framework part to bridge
WMI parts to MFD or so?

...

> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.

Please, drop all these duplications in all files. SPDX is enough.

...

> +static int aaeon_wmi_probe(struct wmi_device *wdev, const void *context)
> +{
> +       struct aaeon_wmi_priv *priv;

       struct aaeon_wmi_priv *priv = context;

> +       if (!wmi_has_guid(AAEON_WMI_MGMT_GUID)) {
> +               dev_info(&wdev->dev, "AAEON Management GUID not found\n");
> +               return -ENODEV;
> +       }

Dead code?

> +       priv = (struct aaeon_wmi_priv *)context;

See above.

> +       dev_set_drvdata(&wdev->dev, priv);
> +
> +       return devm_mfd_add_devices(&wdev->dev, 0, priv->cells,
> +                                   priv->ncells, NULL, 0, NULL);
> +}

...

> +static struct wmi_driver aaeon_wmi_driver = {
> +       .driver = {
> +               .name = "mfd-aaeon",
> +       },
> +       .id_table = aaeon_wmi_id_table,
> +       .probe = aaeon_wmi_probe,
> +};

> +

Redundant blank line.

> +module_wmi_driver(aaeon_wmi_driver);

-- 
With Best Regards,
Andy Shevchenko

  parent reply	other threads:[~2021-05-25  8:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-25  5:41 [PATCH 1/5] mfd: Add support for IO functions of AAEON devices aaeon.asus
2021-05-25  5:41 ` [PATCH 2/5] gpio: add driver for " aaeon.asus
2021-05-25  8:08   ` Andy Shevchenko
2021-05-26 12:06     ` Krzysztof Kozlowski
2021-05-25  5:41 ` [PATCH 3/5] watchdog: " aaeon.asus
2021-05-25  5:41 ` [PATCH 4/5] hwmon: " aaeon.asus
2021-05-25  5:41 ` [PATCH 5/5] leds: " aaeon.asus
2021-05-26 12:13   ` Krzysztof Kozlowski
2021-05-25  8:01 ` Andy Shevchenko [this message]
2021-05-26 12:05 ` [PATCH 1/5] mfd: Add support for IO functions of " Krzysztof Kozlowski

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=CAHp75VfuZNPVi4Oy_JxQB-uu0RNkvMb1sK2bz4-aG_QipNsRKw@mail.gmail.com \
    --to=andy.shevchenko@gmail.com \
    --cc=aaeon.asus@gmail.com \
    --cc=acelan.kao@canonical.com \
    --cc=hdegoede@redhat.com \
    --cc=kunyang_fan@asus.com \
    --cc=linux-gpio@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.