All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tabi Timur-B04825 <B04825@freescale.com>
To: Michael Ellerman <michael@ellerman.id.au>
Cc: Aggrwal Poonam-B10812 <B10812@freescale.com>,
	"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
	Singh Sandeep-B37400 <B37400@freescale.com>
Subject: Re: [2/3][PATCH][upstream] TDM Framework
Date: Wed, 25 Jul 2012 02:40:27 +0000	[thread overview]
Message-ID: <500F5C99.6060704@freescale.com> (raw)
In-Reply-To: <1343173422.2218.2.camel@concordia>

Michael Ellerman wrote:
> I agree these values are odd. But there's no rule that you can only use
> an enum if the values are monotonically increasing.
>
> It can still serve as helpful documentation, and reduce the number of
> places you pass a bare int around.

IMHO, an enum should only be used if

1) You are doing real type checking of the enum
2) You don't care what the actual values of each enum is

For this patch, neither is true.

--=20
Timur Tabi
Linux kernel developer at Freescale=

  reply	other threads:[~2012-07-25  2:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-23 10:49 [2/3][PATCH][upstream] TDM Framework b37400
2012-07-23 10:49 ` [1/3][PATCH][upstream]Adding documentation for TDM b37400
2012-07-23 10:49   ` [3/3][PATCH][upstream]Added TDM device support and Freescale Starlite driver b37400
2012-07-23 12:32   ` [1/3][PATCH][upstream]Adding documentation for TDM David Laight
2012-07-24 15:12     ` Aggrwal Poonam-B10812
2012-07-25  8:44       ` David Laight
2012-07-25 12:08         ` Aggrwal Poonam-B10812
2012-07-23 16:33 ` [2/3][PATCH][upstream] TDM Framework Tabi Timur-B04825
2012-07-24 13:22   ` Singh Sandeep-B37400
2012-07-24 14:43     ` Timur Tabi
2012-07-24 23:43       ` Michael Ellerman
2012-07-25  2:40         ` Tabi Timur-B04825 [this message]
2012-07-25  5:18           ` Michael Ellerman
2012-07-26 21:28             ` Timur Tabi
2012-07-26 22:09               ` Scott Wood
2012-07-26 10:49       ` Singh Sandeep-B37400

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=500F5C99.6060704@freescale.com \
    --to=b04825@freescale.com \
    --cc=B10812@freescale.com \
    --cc=B37400@freescale.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=michael@ellerman.id.au \
    /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.