From: Alexandre Courbot <gnurou@gmail.com>
To: Rojhalat Ibrahim <imr@rtschenk.de>
Cc: Linus Walleij <linus.walleij@linaro.org>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
Alexandre Courbot <acourbot@nvidia.com>
Subject: Re: [PATCH][RESEND] gpiolib: rename gpiod_set_array to gpiod_set_array_value
Date: Mon, 8 Jun 2015 16:19:43 +0900 [thread overview]
Message-ID: <CAAVeFuKrGVYOGKm4-z_hAkkmXqtUv6D6DUGNDgGkhmjQpr1_7A@mail.gmail.com> (raw)
In-Reply-To: <2222617.akd5TaKMMV@pcimr>
On Mon, Jun 8, 2015 at 4:17 PM, Rojhalat Ibrahim <imr@rtschenk.de> wrote:
> On Monday 08 June 2015 15:46:44 Alexandre Courbot wrote:
>> On Mon, Jun 8, 2015 at 2:37 PM, Alexandre Courbot <gnurou@gmail.com> wrote:
>> > On Mon, Jun 1, 2015 at 8:41 PM, Rojhalat Ibrahim <imr@rtschenk.de> wrote:
>> >> There have been concerns that the function names gpiod_set_array() and
>> >> gpiod_get_array() might be confusing to users. One might expect
>> >> gpiod_get_array() to return array values, while it is actually the array
>> >> counterpart of gpiod_get(). To be consistent with the single descriptor API
>> >> gpiod_set_array() is renamed to gpiod_set_array_value().
>> >
>> > Linus, if you are ok with this change I suggest we merge it early in
>> > order to avoid conflicts as more people start using these APIs! :)
>>
>> Actually, Rojhalat: could you define temporary macros to ease the
>> transition? Something like
>>
>> #define gpiod_set_raw_array gpiod_set_raw_array_value
>>
>> We would then take them out around 4.2, once all consumers are converted.
>>
>
> Hi Alexandre,
>
> Linus already applied the patch. (He replied to my original RFC mail.)
Ah, that's perfect then. Sorry for the noise.
> I am not sure those temporary macros are justified. Do you really think
> there are that many out-of-tree consumers? And if so, how would we know
> when all of them have converted to the new interface? After all with those
> macros around, they might not even notice they are using a deprecated
> interface.
My intention was to avoid in-tree breakage with linux-next (we do not
worry about out-of-tree consumers since they can easily update their
code. And they are out-of-tree anyway). But if the patch has already
been merged and is working, then I have no concern at all.
Thanks for keeping up with this!
prev parent reply other threads:[~2015-06-08 7:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-01 11:41 [PATCH][RESEND] gpiolib: rename gpiod_set_array to gpiod_set_array_value Rojhalat Ibrahim
2015-06-08 5:37 ` Alexandre Courbot
2015-06-08 6:46 ` Alexandre Courbot
2015-06-08 7:17 ` Rojhalat Ibrahim
2015-06-08 7:19 ` Alexandre Courbot [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=CAAVeFuKrGVYOGKm4-z_hAkkmXqtUv6D6DUGNDgGkhmjQpr1_7A@mail.gmail.com \
--to=gnurou@gmail.com \
--cc=acourbot@nvidia.com \
--cc=imr@rtschenk.de \
--cc=linus.walleij@linaro.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).