From: Guenter Roeck <guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
To: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
Cc: "linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH v2 1/6] i2cset: Remove deprecated method to provide the value mask
Date: Mon, 14 Feb 2011 09:09:33 -0800 [thread overview]
Message-ID: <20110214170933.GA23753@ericsson.com> (raw)
In-Reply-To: <20110214171735.06270f30-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
Hi Jean,
On Mon, Feb 14, 2011 at 11:17:35AM -0500, Jean Delvare wrote:
> On Mon, 14 Feb 2011 07:46:10 -0800, Guenter Roeck wrote:
> > On Mon, Feb 14, 2011 at 03:48:47AM -0500, Jean Delvare wrote:
> > > Hi Guenter,
> > >
> > > Wow, 6 patches :)
> > >
> > Just because I switched to git. Makes it much easier to me to handle
> > a sequence of patches. Yes, I know, it probably works with svn as well.
> > Just a personal preference ...
>
> Actually, no, SVN would be horrible for this I think. Quilt, OTOH,
> would work just fine.
>
For some reason, Quilt and me seem to be at odds with each other. No idea
why. I tried, but it just doesn't work for me. Maybe it is too simple for me
to understand ;).
> > > (...)
> > > This looks good, however I think the code can be cleaned up further by
> > > getting rid of maskp. I introduced maskp [1] because the mask could be
> > > at two different places on the command line, but now it is no longer
> > > needed.
> >
> > Not sure how, though, since we either need the index to argv[mask] or the pointer,
> > or we would have to read the mask while checking the parameters. The latter
> > doesn't look very clean to me.
>
> The latter is actually what I had in mind. But if you don't like the
> idea, just leave the code as it is.
>
Problem with that is that I can not check the value range at that time, and
I don't know if mask is a valid parameter to start with. So there would have to
be a value check later on anyway (which I just agreed to add). I think it is
better to keep reading the value and the range check together.
Thanks,
Guenter
next prev parent reply other threads:[~2011-02-14 17:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-13 20:17 [PATCH v2 0/6] i2cset changes Guenter Roeck
[not found] ` <1297628246-19367-1-git-send-email-guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2011-02-13 20:17 ` [PATCH v2 1/6] i2cset: Remove deprecated method to provide the value mask Guenter Roeck
[not found] ` <1297628246-19367-2-git-send-email-guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2011-02-14 8:48 ` Jean Delvare
[not found] ` <20110214094847.6607ebaa-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-02-14 15:46 ` Guenter Roeck
[not found] ` <20110214154610.GA22833-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2011-02-14 16:17 ` Jean Delvare
[not found] ` <20110214171735.06270f30-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-02-14 17:09 ` Guenter Roeck [this message]
2011-02-13 20:17 ` [PATCH v2 2/6] i2cset: Check number of arguments for block data writes Guenter Roeck
[not found] ` <1297628246-19367-3-git-send-email-guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2011-02-14 8:52 ` Jean Delvare
2011-02-13 20:17 ` [PATCH v2 3/6] i2cset: Abort if value mask is set for block commands Guenter Roeck
[not found] ` <1297628246-19367-4-git-send-email-guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2011-02-14 8:56 ` Jean Delvare
2011-02-13 20:17 ` [PATCH v2 4/6] i2cset: Ensure that there is no junk after the command/mode parameter Guenter Roeck
[not found] ` <1297628246-19367-5-git-send-email-guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2011-02-14 8:59 ` Jean Delvare
2011-02-13 20:17 ` [PATCH v2 5/6] i2cset: Replace blanks at beginning of line with tabs Guenter Roeck
[not found] ` <1297628246-19367-6-git-send-email-guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2011-02-14 9:00 ` Jean Delvare
2011-02-13 20:17 ` [PATCH v2 6/6] i2cset: Get command/mode before reading data Guenter Roeck
[not found] ` <1297628246-19367-7-git-send-email-guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2011-02-14 9:43 ` Jean Delvare
-- strict thread matches above, loose matches on Subject: below --
2011-02-14 18:06 [PATCH v3 0/6] i2cset changes Guenter Roeck
[not found] ` <1297706773-26389-1-git-send-email-guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2011-02-14 18:06 ` [PATCH v2 1/6] i2cset: Remove deprecated method to provide the value mask Guenter Roeck
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=20110214170933.GA23753@ericsson.com \
--to=guenter.roeck-izefyvvap7pwk0htik3j/w@public.gmane.org \
--cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.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.