From: Andy Shevchenko <andy@kernel.org>
To: Dumitru Ceclan <mitrutzceclan@gmail.com>
Cc: linus.walleij@linaro.org, brgl@bgdev.pl,
linux-gpio@vger.kernel.org,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Jonathan Cameron" <jic23@kernel.org>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Michael Walle" <michael@walle.cc>,
"Arnd Bergmann" <arnd@arndb.de>,
"ChiaEn Wu" <chiaen_wu@richtek.com>,
"Niklas Schnelle" <schnelle@linux.ibm.com>,
"Leonard Göhrs" <l.goehrs@pengutronix.de>,
"Mike Looijmans" <mike.looijmans@topic.nl>,
"Haibo Chen" <haibo.chen@nxp.com>,
"Hugo Villeneuve" <hvilleneuve@dimonoff.com>,
"David Lechner" <dlechner@baylibre.com>,
"Ceclan Dumitru" <dumitru.ceclan@analog.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, "Nuno Sa" <nuno.sa@analog.com>
Subject: Re: [PATCH v14 3/3] iio: adc: ad7173: add AD7173 driver
Date: Thu, 22 Feb 2024 16:02:10 +0200 [thread overview]
Message-ID: <ZddT4mmxf3W55ea8@smile.fi.intel.com> (raw)
In-Reply-To: <20240222110817.29670-3-mitrutzceclan@gmail.com>
On Thu, Feb 22, 2024 at 01:07:43PM +0200, Dumitru Ceclan wrote:
> The AD7173 family offer a complete integrated Sigma-Delta ADC solution
> which can be used in high precision, low noise single channel
> applications or higher speed multiplexed applications. The Sigma-Delta
> ADC is intended primarily for measurement of signals close to DC but also
> delivers outstanding performance with input bandwidths out to ~10kHz.
A couple more comments which Jonathan might address when applying,
up to him.
...
With
struct device *dev = &st->sd.spi->dev;
the below will be neater.
> + struct ad7173_state *st = iio_priv(indio_dev);
> + u8 buf[AD7173_RESET_LENGTH];
> + unsigned int id;
> + int ret;
...
> + if (id != st->info->id)
> + dev_warn(&st->sd.spi->dev,
> + "Unexpected device id: 0x%04X, expected: 0x%04X\n",
> + id, st->info->id);
(like here)
...
> + st->config_usage_counter = 0;
> + st->config_cnts = devm_kcalloc(&st->sd.spi->dev, st->info->num_configs,
> + sizeof(u64), GFP_KERNEL);
sizeof(*st->config_cnts) ?
(or here)
> + if (!st->config_cnts)
> + return -ENOMEM;
...
> + ret = fwnode_property_match_property_string(dev_fwnode(dev),
device_property_match_property_string()
> + "clock-names",
> + ad7173_clk_sel,
> + ARRAY_SIZE(ad7173_clk_sel));
...
> + if (num_channels == 0)
> + return dev_err_probe(dev, -EINVAL, "No channels specified\n");
-ENODATA?
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2024-02-22 14:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-22 11:07 [PATCH v14 1/3] dt-bindings: adc: add AD7173 Dumitru Ceclan
2024-02-22 11:07 ` [PATCH v14 2/3] iio: adc: ad_sigma_delta: Add optional irq selection Dumitru Ceclan
2024-02-22 13:54 ` Andy Shevchenko
2024-02-22 11:07 ` [PATCH v14 3/3] iio: adc: ad7173: add AD7173 driver Dumitru Ceclan
2024-02-22 14:02 ` Andy Shevchenko [this message]
2024-02-22 15:50 ` [PATCH v14 1/3] dt-bindings: adc: add AD7173 Conor Dooley
2024-02-23 9:12 ` Ceclan, Dumitru
2024-02-23 18:39 ` Conor Dooley
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=ZddT4mmxf3W55ea8@smile.fi.intel.com \
--to=andy@kernel.org \
--cc=arnd@arndb.de \
--cc=brgl@bgdev.pl \
--cc=chiaen_wu@richtek.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=dumitru.ceclan@analog.com \
--cc=haibo.chen@nxp.com \
--cc=hvilleneuve@dimonoff.com \
--cc=jic23@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=l.goehrs@pengutronix.de \
--cc=lars@metafoo.de \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@walle.cc \
--cc=mike.looijmans@topic.nl \
--cc=mitrutzceclan@gmail.com \
--cc=nuno.sa@analog.com \
--cc=robh+dt@kernel.org \
--cc=schnelle@linux.ibm.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