linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: "Gaëtan Carlier" <gcembed@gmail.com>
Cc: linux-leds@vger.kernel.org
Subject: Re: Add driver for MCP45HV51 (digital potentiometer)
Date: Wed, 3 Jan 2018 21:02:38 +0100	[thread overview]
Message-ID: <20180103200237.GA6261@amd> (raw)
In-Reply-To: <13bcf912-56c7-5f18-aef7-4a5f5332e30d@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 903 bytes --]

Hi!

> >>Is that _output_ device? What does it control?
> >>
> >>                                    Pavel
> >>
> >
> >It is an output with a variable resistance (like DAC is an output with a
> >variable voltage).[1]
> >So regarding the webpage of IIO[2], digital potentiometer must be coded on
> >IIO API.

Well.. you could argue soundcard is DAC with variable output voltage,
too.

In kernel, we group devices according to the function, not hw implementation.

Anyway, go for IIO, its likely good match.


> >[1] https://en.wikipedia.org/wiki/Digital_potentiometer
> >[2] https://wiki.analog.com/software/linux/docs/iio/iio
> After a deeper search on a recent branch, potentiometer are already handled
> in IIO layer :D

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

      reply	other threads:[~2018-01-03 20:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-03 16:08 Add driver for MCP45HV51 (digital potentiometer) Gaëtan Carlier
2018-01-03 17:56 ` Pavel Machek
2018-01-03 18:38   ` Gaëtan Carlier
2018-01-03 19:00     ` Pavel Machek
2018-01-03 19:25       ` Gaëtan Carlier
2018-01-03 19:37         ` Gaëtan Carlier
2018-01-03 20:02           ` Pavel Machek [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=20180103200237.GA6261@amd \
    --to=pavel@ucw.cz \
    --cc=gcembed@gmail.com \
    --cc=linux-leds@vger.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).