linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Ramona Bolboaca <ramona.bolboaca@analog.com>
Cc: Jonathan Cameron <jic23@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	linux-iio <linux-iio@vger.kernel.org>,
	devicetree <devicetree@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] iio: adc: add max11205 adc driver
Date: Thu, 25 Aug 2022 23:11:55 +0300	[thread overview]
Message-ID: <CAHp75VeP_ZLYSty2x_m27M_1HzsXx_DX=UsZopPEonAfr7_RyA@mail.gmail.com> (raw)
In-Reply-To: <20220824125203.685287-3-ramona.bolboaca@analog.com>

On Wed, Aug 24, 2022 at 3:56 PM Ramona Bolboaca
<ramona.bolboaca@analog.com> wrote:
>
> Adding support for max11205 16-bit single-channel ultra-low power
> delta-sigma adc.
> The MAX11205 is compatible with the 2-wire interface and uses
> SCLK and RDY/DOUT for serial communica- tions. In this mode, all
> controls are implemented by tim- ing the high or low phase of the SCLK.
> The 2-wire serial interface only allows for data to be read out through the
> RDY/DOUT output.

Is there any existing driver that can be extended to support this chip?

...

> +       st->chip_info = device_get_match_data(&spi->dev);

And if chip_info is NULL?

...

> +static void max11205_remove(struct spi_device *spi)
> +{
> +       struct iio_dev *indio_dev = spi_get_drvdata(spi);
> +       struct max11205_state *st = iio_priv(indio_dev);

> +       iio_device_unregister(indio_dev);
> +       regulator_disable(st->vref);
> +}

Have you tested module removal?

> +

...

> +static const struct chip_info max11205_chip_info[] = {
> +       [TYPE_MAX11205A] = {
> +               .out_data_rate = MAX11205A_OUT_DATA_RATE,

> +               .name = "max11205a"

+ Comma

> +       },
> +       [TYPE_MAX11205B] = {
> +               .out_data_rate = MAX11205B_OUT_DATA_RATE,

> +               .name = "max11205b"

Ditto.

> +       }

Ditto.

> +};

...

> +

Redundant blank line.

> +module_spi_driver(max11205_spi_driver);

-- 
With Best Regards,
Andy Shevchenko

  reply	other threads:[~2022-08-25 20:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-24 12:52 [PATCH 0/2] iio: adc: add max11205 adc driver Ramona Bolboaca
2022-08-24 12:52 ` [PATCH 1/2] bindings: iio: adc: Add max11205 documentation file Ramona Bolboaca
2022-08-24 13:07   ` Krzysztof Kozlowski
2022-08-28 16:48   ` Jonathan Cameron
2022-08-24 12:52 ` [PATCH 2/2] iio: adc: add max11205 adc driver Ramona Bolboaca
2022-08-25 20:11   ` Andy Shevchenko [this message]
2022-08-28 16:58   ` Jonathan Cameron

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='CAHp75VeP_ZLYSty2x_m27M_1HzsXx_DX=UsZopPEonAfr7_RyA@mail.gmail.com' \
    --to=andy.shevchenko@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jic23@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ramona.bolboaca@analog.com \
    --cc=robh+dt@kernel.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).