From: Andy Shevchenko <andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Daniel Baluta <daniel.baluta-3arQi8VN3Tc@public.gmane.org>,
ALSA Development Mailing List
<alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org>,
devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Fabio Estevam <fabio.estevam-3arQi8VN3Tc@public.gmane.org>,
Linux Kernel Mailing List
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
wakasugi.jb-r6lgfPJHJciWyREYz5tgSuqrae++aQT8@public.gmane.org,
"S.j. Wang" <shengjiu.wang-3arQi8VN3Tc@public.gmane.org>,
Mihai Serban
<mihai.serban-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Cosmin Samoila <cosmin.samoila-3arQi8VN3Tc@public.gmane.org>,
dl-linux-imx <linux-imx-3arQi8VN3Tc@public.gmane.org>,
Daniel Baluta
<daniel.baluta-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Mihai Serban <mihai.serban-3arQi8VN3Tc@public.gmane.org>
Subject: Re: [PATCH v2 1/2] ASoC: codecs: Add support for AK5558 ADC driver
Date: Sun, 4 Feb 2018 16:31:50 +0200 [thread overview]
Message-ID: <CAHp75Vdadii=judzHp_Wt-Yn7Ozyn2ybAKCtWAj=KtyHRsUucw@mail.gmail.com> (raw)
In-Reply-To: <20180202231102.GA2705-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
On Sat, Feb 3, 2018 at 1:11 AM, Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> On Fri, Feb 02, 2018 at 09:33:18PM +0200, Andy Shevchenko wrote:
>> On Fri, Feb 2, 2018 at 6:20 PM, Daniel Baluta <daniel.baluta-3arQi8VN3Tc@public.gmane.org> wrote:
>
>> > +static int ak5558_set_dai_mute(struct snd_soc_dai *dai, int mute)
>> > +{
>> > + struct snd_soc_codec *codec = dai->codec;
>> > + struct ak5558_priv *ak5558 = snd_soc_codec_get_drvdata(codec);
>>
>> > + int ndt = 0;
>>
>> It might be even
>>
>> int ndt = max(ak5558->fs ? 583000 / ak5558->fs : 5, 5);
>
> Please don't encourage people to use the ternery operator like that, it
> does nothing for legibility not to write out the conditionals.
Noted.
>> > +static const struct i2c_device_id ak5558_i2c_id[] = {
>> > + { "ak5558", 0 },
>> > + { }
>> > +};
>> > +MODULE_DEVICE_TABLE(i2c, ak5558_i2c_id);
>
>> I dunno if it's really helpful to have. Though it's up to Mark and you.
>
> I don't care either way.
Since Mark is okay with either, I would rather switch to ->probe_new()
and remove above table.
--
With Best Regards,
Andy Shevchenko
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2018-02-04 14:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-02 16:20 [PATCH v2 0/2] Add support for AK5558 ADC Daniel Baluta
2018-02-02 16:20 ` [PATCH v2 1/2] ASoC: codecs: Add support for AK5558 ADC driver Daniel Baluta
2018-02-02 19:33 ` Andy Shevchenko
2018-02-02 23:11 ` Mark Brown
[not found] ` <20180202231102.GA2705-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2018-02-04 14:31 ` Andy Shevchenko [this message]
2018-02-04 14:42 ` Daniel Baluta
2018-02-02 16:20 ` [PATCH v2 2/2] ASoC: ak5558: Add bindings for AK5558 ADC Daniel Baluta
2018-02-02 22:48 ` [alsa-devel] " Fabio Estevam
[not found] ` <1517588406-3295-3-git-send-email-daniel.baluta-3arQi8VN3Tc@public.gmane.org>
2018-02-05 6:09 ` Rob Herring
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='CAHp75Vdadii=judzHp_Wt-Yn7Ozyn2ybAKCtWAj=KtyHRsUucw@mail.gmail.com' \
--to=andy.shevchenko-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=cosmin.samoila-3arQi8VN3Tc@public.gmane.org \
--cc=daniel.baluta-3arQi8VN3Tc@public.gmane.org \
--cc=daniel.baluta-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=fabio.estevam-3arQi8VN3Tc@public.gmane.org \
--cc=linux-imx-3arQi8VN3Tc@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mihai.serban-3arQi8VN3Tc@public.gmane.org \
--cc=mihai.serban-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=shengjiu.wang-3arQi8VN3Tc@public.gmane.org \
--cc=wakasugi.jb-r6lgfPJHJciWyREYz5tgSuqrae++aQT8@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 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).