From: Jonathan Cameron <jic23@kernel.org>
To: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net,
linux-amlogic@lists.infradead.org, linux-iio@vger.kernel.org
Subject: Re: [PATCH 2/2] iio: adc: meson-saradc: add support for the Meson8m2 SoCs
Date: Sun, 22 Jul 2018 09:19:10 +0100 [thread overview]
Message-ID: <20180722091910.20cb9a9d@archlinux> (raw)
In-Reply-To: <20180721194049.23265-3-martin.blumenstingl@googlemail.com>
On Sat, 21 Jul 2018 21:40:49 +0200
Martin Blumenstingl <martin.blumenstingl@googlemail.com> wrote:
> The SAR ADC on Meson8m2 behaves identical to the one found in the
> Meson8b SoCs. Add a separate compatible string because the temperature
> sensor logic (not supported yet) differs between Meson8 and Meson8m2
> (however, it's the same for Meson8b and Meson8m2).
>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Applied, thanks
Jonathan
> ---
> drivers/iio/adc/meson_saradc.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c
> index 2948909f3ee3..da2d16dfa63e 100644
> --- a/drivers/iio/adc/meson_saradc.c
> +++ b/drivers/iio/adc/meson_saradc.c
> @@ -922,6 +922,11 @@ static const struct meson_sar_adc_data meson_sar_adc_meson8b_data = {
> .name = "meson-meson8b-saradc",
> };
>
> +static const struct meson_sar_adc_data meson_sar_adc_meson8m2_data = {
> + .param = &meson_sar_adc_meson8_param,
> + .name = "meson-meson8m2-saradc",
> +};
> +
> static const struct meson_sar_adc_data meson_sar_adc_gxbb_data = {
> .param = &meson_sar_adc_gxbb_param,
> .name = "meson-gxbb-saradc",
> @@ -951,6 +956,10 @@ static const struct of_device_id meson_sar_adc_of_match[] = {
> .compatible = "amlogic,meson8b-saradc",
> .data = &meson_sar_adc_meson8b_data,
> },
> + {
> + .compatible = "amlogic,meson8m2-saradc",
> + .data = &meson_sar_adc_meson8m2_data,
> + },
> {
> .compatible = "amlogic,meson-gxbb-saradc",
> .data = &meson_sar_adc_gxbb_data,
prev parent reply other threads:[~2018-07-22 9:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-21 19:40 [PATCH 0/2] meson-saradc: add support for the Meson8m2 SoC Martin Blumenstingl
2018-07-21 19:40 ` [PATCH 1/2] dt-bindings: iio: adc: add Meson8m2 support Martin Blumenstingl
2018-07-22 8:18 ` Jonathan Cameron
2018-07-21 19:40 ` [PATCH 2/2] iio: adc: meson-saradc: add support for the Meson8m2 SoCs Martin Blumenstingl
2018-07-22 8:19 ` Jonathan Cameron [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=20180722091910.20cb9a9d@archlinux \
--to=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=pmeerw@pmeerw.net \
/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).