From: Ralf Baechle <ralf@linux-mips.org>
To: Dan Malek <dan@embeddedalley.com>
Cc: Jordan Crouse <jordan.crouse@amd.com>, linux-mips@linux-mips.org
Subject: Re: [PATCH] Fix board type in db1x00
Date: Tue, 29 Nov 2005 16:51:48 +0000 [thread overview]
Message-ID: <20051129165148.GA20402@linux-mips.org> (raw)
In-Reply-To: <6dabaec28e238ccc915f20f51ee28327@embeddedalley.com>
On Tue, Nov 22, 2005 at 05:31:20PM -0500, Dan Malek wrote:
> On Nov 22, 2005, at 5:15 PM, Jordan Crouse wrote:
>
> >+ /* Set the platform # */
> >+#if defined (CONFIG_MIPS_DB1550)
> >+ mips_machtype = MACH_DB1550;
> >+#elif defined (CONFIG_MIPS_DB1500)
> >+ mips_machtype = MACH_DB1500;
> >+#elif defined (CONFIG_MIPS_DB1100)
> >+ mips_machtype = MACH_DB1100;
> >+#else
> >+ mips_machtype = MACH_DB1000;
> >+#endif
>
> Can't we just do something like
> #define MACH_ALCHEMY_TYPE xxxxx
>
> in the include files and not have this mess in the
> actual code? Then, all we have to do here is:
>
> mips_machtype = MACH_ALCHEMY_TYPE;
But we don't have a nice space for this in header files either right now.
So I'll apply this one but if you come up with something better I'll
certainly appreciate it.
Ralf
next prev parent reply other threads:[~2005-11-29 16:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-22 22:15 [PATCH] Fix board type in db1x00 Jordan Crouse
2005-11-22 22:31 ` Dan Malek
2005-11-23 0:15 ` Jordan Crouse
2005-11-23 0:24 ` Dan Malek
2005-11-23 1:18 ` Jordan Crouse
2005-11-23 6:31 ` [PATCH] " Matej Kupljen
2005-11-23 14:39 ` Dan Malek
2005-11-29 16:51 ` Ralf Baechle [this message]
2005-11-30 8:35 ` Matej Kupljen
2005-11-30 11:23 ` Ralf Baechle
2005-11-30 15:29 ` Jordan Crouse
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=20051129165148.GA20402@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=dan@embeddedalley.com \
--cc=jordan.crouse@amd.com \
--cc=linux-mips@linux-mips.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.