All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Carlos Ferreira <carlosmiguelferreira.2003@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>,
	platform-driver-x86@vger.kernel.org,
	 LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] HP: wmi: added support for 4 zone keyboard rgb
Date: Thu, 4 Apr 2024 15:51:19 +0300 (EEST)	[thread overview]
Message-ID: <fde354a7-4947-e32f-4c35-8b5453257d8e@linux.intel.com> (raw)
In-Reply-To: <5181e9fa-2acc-4bc3-9f22-77ec519941ac@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2347 bytes --]

On Wed, 27 Mar 2024, Carlos Ferreira wrote:

> On 3/27/24 1:05 PM, Ilpo Järvinen wrote:
> 
> > On Tue, 26 Mar 2024, Carlos Ferreira wrote:
> > 
> >> Hi, i have changed some of the code. How does it look now?
> >>
> >> Signed-off-by: Carlos Ferreira <carlosmiguelferreira.2003@gmail.com>
> >> ---
> > 
> > First of all, you need to make a proper submission with versioning, that 
> > is:
> > 
> > - Put version into the subject: PATCH v2
> > - Don't put extra stuff into changelog like the above question, if you 
> > need to ask something, put your question underneath the first --- line.
> > - List the changes you made underneath the first --- line (see ML 
> > archives for examples about formatting)
> 
> Should i submit the v2 patch with the current state or with the changes 
> suggested such as the use of the leds API? 

Please send v3 once you've made the changes, there's no need to send 
patches which we know to become obsolete.

> >>  drivers/platform/x86/hp/hp-wmi.c | 251 +++++++++++++++++++++++++++++--
> >>  1 file changed, 241 insertions(+), 10 deletions(-)
> >>
> >> diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
> >> index e53660422..8108ca7e9 100644
> >> --- a/drivers/platform/x86/hp/hp-wmi.c
> >> +++ b/drivers/platform/x86/hp/hp-wmi.c
> >> @@ -27,6 +27,7 @@
> >>  #include <linux/rfkill.h>
> >>  #include <linux/string.h>
> >>  #include <linux/dmi.h>
> >> +#include <linux/bitfield.h>
> > 
> > Try to put it earlier, these should eventually be in alphabetic order 
> > (again, ordered by a separate patch, not this one).
> 
> You mean organizing all the imports like this?
> #include <linux/acpi.h>
> #include <linux/bitfield.h>
> #include <linux/dmi.h>
> #include <linux/hwmon.h>
> #include <linux/init.h>
> #include <linux/input.h>
> #include <linux/input/sparse-keymap.h>
> #include <linux/kernel.h>
> #include <linux/module.h>
> #include <linux/platform_device.h>
> #include <linux/platform_profile.h>
> #include <linux/rfkill.h>
> #include <linux/slab.h>
> #include <linux/string.h>
> #include <linux/types.h>

Yes.

If adding to a non-sorted list, the include should be placed before any 
entries that are alphabetically after it but providing another patch 
to sort them is of course even better than that.

-- 
 i.

  reply	other threads:[~2024-04-04 12:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-24 18:05 [PATCH] HP: wmi: added support for 4 zone keyboard rgb Carlos Ferreira
2024-03-26 11:05 ` Ilpo Järvinen
2024-03-26 19:09   ` Carlos Ferreira
2024-03-27 13:05     ` Ilpo Järvinen
2024-03-27 19:03       ` Carlos Ferreira
2024-04-04 12:51         ` Ilpo Järvinen [this message]
2024-04-08 12:34 ` Hans de Goede
2024-07-07 17:20   ` Carlos Ferreira
2024-07-11 15:03     ` Hans de Goede

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=fde354a7-4947-e32f-4c35-8b5453257d8e@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=carlosmiguelferreira.2003@gmail.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@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.