From: Arnaud Pouliquen <arnaud.pouliquen@st.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Liam Girdwood <lgirdwood@gmail.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
Mark Brown <broonie@kernel.org>, Takashi Iwai <tiwai@suse.com>,
Rob Herring <robh+dt@kernel.org>,
Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
Hartmut Knaack <knaack.h@gmx.de>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Alexandre TORGUE <alexandre.torgue@st.com>
Subject: Re: [PATCH v4 08/12] IIO: ADC: add STM32 DFSDM sigma delta ADC support
Date: Fri, 24 Nov 2017 15:49:46 +0100 [thread overview]
Message-ID: <e05656e4-6ac4-b249-670f-98f2c42d7968@st.com> (raw)
In-Reply-To: <20171119142935.044a0764@archlinux>
On 11/19/2017 03:29 PM, Jonathan Cameron wrote:
> On Thu, 9 Nov 2017 11:12:30 +0100
> Arnaud Pouliquen <arnaud.pouliquen@st.com> wrote:
>
>> Add DFSDM driver to handle sigma delta ADC.
>>
>> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
>> ---
>> drivers/iio/adc/Kconfig | 13 +
>> drivers/iio/adc/Makefile | 1 +
>> drivers/iio/adc/stm32-dfsdm-adc.c | 741 ++++++++++++++++++++++++++++++++++++++
>> 3 files changed, 755 insertions(+)
>> create mode 100644 drivers/iio/adc/stm32-dfsdm-adc.c
[...]
>> diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c
>> new file mode 100644
>> index 0000000..f9419ab
>> --- /dev/null
>> +++ b/drivers/iio/adc/stm32-dfsdm-adc.c
>> @@ -0,0 +1,741 @@
[...]
>> +static int stm32_dfsdm_adc_remove(struct platform_device *pdev)
>> +{
>> + struct stm32_dfsdm_adc *adc = platform_get_drvdata(pdev);
>> + struct iio_dev *indio_dev = iio_priv_to_dev(adc);
>> +
>> + iio_device_unregister(indio_dev);
> Given that all we have here is device unregister, you could
> use the devm_iio_device_register call and drop the remove entirely.
> (of course you may add stuff here in later patches - I haven't
> looked yet ;)
Yes, the next patch makes devm_iio_device_register useless, so i don't
use it here.
Regards
Arnaud
>> +
>> + return 0;
>> +}
>> +
>> +static struct platform_driver stm32_dfsdm_adc_driver = {
>> + .driver = {
>> + .name = "stm32-dfsdm-adc",
>> + .of_match_table = stm32_dfsdm_adc_match,
>> + },
>> + .probe = stm32_dfsdm_adc_probe,
>> + .remove = stm32_dfsdm_adc_remove,
>> +
>> +};
>> +module_platform_driver(stm32_dfsdm_adc_driver);
>> +
>> +MODULE_DESCRIPTION("STM32 sigma delta ADC");
>> +MODULE_AUTHOR("Arnaud Pouliquen <arnaud.pouliquen@st.com>");
>> +MODULE_LICENSE("GPL v2");
>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2017-11-24 14:49 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-09 10:12 [PATCH v4 00/12] Add STM32 DFSDM support Arnaud Pouliquen
2017-11-09 10:12 ` [PATCH v4 01/12] iio: Add hardware consumer buffer support Arnaud Pouliquen
[not found] ` <1510222354-15290-2-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-19 12:32 ` Jonathan Cameron
2017-11-09 10:12 ` [PATCH v4 02/12] docs: driver-api: add iio hw consumer section Arnaud Pouliquen
[not found] ` <1510222354-15290-3-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-19 12:31 ` Jonathan Cameron
2017-11-09 10:12 ` [PATCH v4 04/12] IIO: Add DT bindings for sigma delta adc modulator Arnaud Pouliquen
[not found] ` <1510222354-15290-5-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2018-01-10 11:13 ` Applied "IIO: Add DT bindings for sigma delta adc modulator" to the asoc tree Mark Brown
2017-11-09 10:12 ` [PATCH v4 05/12] IIO: ADC: add sigma delta modulator support Arnaud Pouliquen
[not found] ` <1510222354-15290-6-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-19 12:44 ` Jonathan Cameron
[not found] ` <1510222354-15290-1-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-09 10:12 ` [PATCH v4 03/12] IIO: hw_consumer: add devm_iio_hw_consumer_alloc Arnaud Pouliquen
[not found] ` <1510222354-15290-4-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-19 12:34 ` Jonathan Cameron
2017-11-24 14:48 ` Arnaud Pouliquen
2017-11-09 10:12 ` [PATCH v4 06/12] IIO: add DT bindings for stm32 DFSDM filter Arnaud Pouliquen
[not found] ` <1510222354-15290-7-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-10 21:05 ` Rob Herring
2017-11-09 10:12 ` [PATCH v4 07/12] IIO: ADC: add stm32 DFSDM core support Arnaud Pouliquen
[not found] ` <1510222354-15290-8-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-19 12:54 ` Jonathan Cameron
2017-11-09 10:12 ` [PATCH v4 08/12] IIO: ADC: add STM32 DFSDM sigma delta ADC support Arnaud Pouliquen
[not found] ` <1510222354-15290-9-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-19 14:29 ` Jonathan Cameron
2017-11-24 14:49 ` Arnaud Pouliquen [this message]
2017-11-09 10:12 ` [PATCH v4 09/12] IIO: ADC: add stm32 DFSDM support for PDM microphone Arnaud Pouliquen
[not found] ` <1510222354-15290-10-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-19 14:18 ` Jonathan Cameron
2017-11-24 14:52 ` Arnaud Pouliquen
[not found] ` <4362763f-2182-a3cf-cbd6-6c71df59af52-qxv4g6HH51o@public.gmane.org>
2017-11-25 14:36 ` Jonathan Cameron
2017-11-09 10:12 ` [PATCH v4 10/12] IIO: consumer: allow to set buffer sizes Arnaud Pouliquen
[not found] ` <1510222354-15290-11-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-19 14:19 ` Jonathan Cameron
2017-11-09 10:12 ` [PATCH v4 11/12] ASoC: add bindings for stm32 DFSDM filter Arnaud Pouliquen
[not found] ` <1510222354-15290-12-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-15 15:43 ` Rob Herring
2017-11-16 10:53 ` Arnaud Pouliquen
2017-11-09 10:12 ` [PATCH v4 12/12] ASoC: stm32: add DFSDM DAI support Arnaud Pouliquen
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=e05656e4-6ac4-b249-670f-98f2c42d7968@st.com \
--to=arnaud.pouliquen@st.com \
--cc=alexandre.torgue@st.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=pmeerw@pmeerw.net \
--cc=robh+dt@kernel.org \
--cc=tiwai@suse.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;
as well as URLs for NNTP newsgroup(s).