From: Pavel Machek <pavel@ucw.cz>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: Amy Parker <apark0006@student.cerritos.edu>,
kernel test robot <lkp@intel.com>,
kbuild-all@lists.01.org, linux-leds@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] swap led_brightness from enum to typedef
Date: Mon, 19 Jul 2021 14:05:23 +0200 [thread overview]
Message-ID: <20210719120523.GA20484@duo.ucw.cz> (raw)
In-Reply-To: <e1a4685e-ceab-75f2-ee18-09a0a9c55a87@infradead.org>
[-- Attachment #1: Type: text/plain, Size: 1694 bytes --]
Hi!
> >>> vim +18 include/media/v4l2-flash-led-class.h
> >>>
> >>> 14
> >>> 15 struct led_classdev_flash;
> >>> 16 struct led_classdev;
> >>> 17 struct v4l2_flash;
> >>> > 18 led_brightness;
> >>> 19
> >>>
> >>> ---
>
> >
> > Another patch was sent into the list to correct this error.
>
> Hopefully Pavel (LED subsystem maintainer) will comment soon-ish.
>
> My comments:
>
> a. This patch would be the right thing to do if your large patch had already been
> applied (merged) somewhere, but AFAIK it hasn't been. So:
>
> b. IMO you should resend your entire patch set with this fix included.
> Send it as "v2" (version 2) and explain the changes in it since your
> original patch (which was v1). This v2 explanation should be below the
> "---" line in the patch. (See Documentation/process/submitting-patches.rst
> for more info -- or ask for more info/help.)
I still remember the old patch, so b. is not strictly neccessary here.
> c. For your follow-up patch to include/media/v4l2-flash-led-class.h, which was:
>
> -led_brightness;
> +typedef u8 led_brightness;
>
> I would just add this to include/media/v4l2-flash-led-class.h:
>
> #include <linux/leds.h>
>
> That way, in a few years, when the type of led_brightness changes again,
> someone won't have to remember to search for other typedefs of it and
> update them also. Or maybe they will do that after a bug happens and
> someone notices it.
>
> (Note that I am just trying to help. Pavel has more of a final
> say-so about this.)
And your comments are reasonable.
Best regards,
Pavel
--
http://www.livejournal.com/~pavelmachek
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2021-07-19 12:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-15 21:18 [PATCH 0/2] leds: change led_brightness definition " Amy Parker
2021-07-15 21:18 ` [PATCH 1/2] swap led_brightness " Amy Parker
2021-07-16 0:41 ` kernel test robot
2021-07-16 2:14 ` kernel test robot
2021-07-16 3:11 ` Amy Parker
2021-07-16 21:07 ` Amy Parker
2021-07-16 21:43 ` Randy Dunlap
2021-07-19 12:05 ` Pavel Machek [this message]
2021-07-19 7:16 ` Geert Uytterhoeven
2021-07-19 8:40 ` Geert Uytterhoeven
2021-08-03 21:38 ` Pavel Machek
2021-07-19 8:05 ` Dan Carpenter
2021-07-19 8:21 ` Dan Carpenter
2021-07-19 12:08 ` Pavel Machek
2021-07-15 21:18 ` [PATCH 2/2] drivers/leds/TODO: update TODO to reflect changes Amy Parker
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=20210719120523.GA20484@duo.ucw.cz \
--to=pavel@ucw.cz \
--cc=apark0006@student.cerritos.edu \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=lkp@intel.com \
--cc=rdunlap@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®