From: Lee Jones <lee@kernel.org>
To: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: patches@opensource.cirrus.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mfd: cs42l43: Correct SoundWire port list
Date: Thu, 23 Nov 2023 14:18:12 +0000 [thread overview]
Message-ID: <20231123141812.GG1243364@google.com> (raw)
In-Reply-To: <20231123114605.GQ32655@ediswmail.ad.cirrus.com>
On Thu, 23 Nov 2023, Charles Keepax wrote:
> On Thu, Nov 23, 2023 at 11:30:55AM +0000, Lee Jones wrote:
> > On Mon, 13 Nov 2023, Charles Keepax wrote:
> > > enum cs42l43_sdw_ports {
> > > - CS42L43_DMIC_DEC_ASP_PORT = 1,
> > > - CS42L43_SPK_TX_PORT,
> > > - CS42L43_SPDIF_HP_PORT,
> > > - CS42L43_SPK_RX_PORT,
> > > - CS42L43_ASP_PORT,
> > > + CS42L43_DP1 = 1,
> > > + CS42L43_DP2,
> > > + CS42L43_DP3,
> > > + CS42L43_DP4,
> > > + CS42L43_DP5,
> > > + CS42L43_DP6,
> > > + CS42L43_DP7,
> > > };
> >
> > This is starting to look a little redundant now.
> >
> > I'm not sure if this is better, but it sure takes up less room:
> >
> > #define CS42L43_SDW_PORT(port) port
> >
>
> Sure, I think that is better. Will respin the patch. I mean I
> guess I could also just drop the enum/define entirely and just
> use the port numbers. But will assume you prefer the define
> unless I hear otherwise.
Yes, I like magic numbers even less. Thanks.
--
Lee Jones [李琼斯]
prev parent reply other threads:[~2023-11-23 14:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-13 15:02 [PATCH] mfd: cs42l43: Correct SoundWire port list Charles Keepax
2023-11-23 11:30 ` Lee Jones
2023-11-23 11:46 ` Charles Keepax
2023-11-23 14:18 ` Lee Jones [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=20231123141812.GG1243364@google.com \
--to=lee@kernel.org \
--cc=ckeepax@opensource.cirrus.com \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
/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