[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75Vff8Avpxany=5j3e+4gmAAefJgDVX3riONN-=VLwj1HNQ@mail.gmail.com>
Date: Thu, 23 Jun 2022 21:07:21 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Marcus Folkesson <marcus.folkesson@...il.com>
Cc: Kent Gustavsson <kent@...oris.se>,
Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
linux-iio <linux-iio@...r.kernel.org>,
devicetree <devicetree@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 08/10] iio: adc: mcp3911: add support for phase
On Thu, Jun 23, 2022 at 7:42 PM Marcus Folkesson
<marcus.folkesson@...il.com> wrote:
>
> The MCP3911 incorporates a phase delay generator,
> which ensures that the two ADCs are converting the
> inputs with a fixed delay between them.
> Expose it to userspace.
...
> + case IIO_CHAN_INFO_PHASE:
> + if (val2 != 0 || val > 0xfff) {
>= BIT(12) will show better the intention
> + ret = -EINVAL;
> + goto out;
> + }
...
> + ret = mcp3911_write(adc, MCP3911_REG_PHASE, val,
> + 2);
One line.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists