[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111017101959.GC3042@opensource.wolfsonmicro.com>
Date: Mon, 17 Oct 2011 11:19:59 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Jonathan Cameron <jic23@....ac.uk>
Cc: Linus Walleij <linus.ml.walleij@...il.com>,
linux-kernel@...r.kernel.org, linux-iio@...r.kernel.org,
zdevai@...il.com
Subject: Re: [PATCH] staging:iio:proof of concept in kernel interface.
On Mon, Oct 17, 2011 at 10:43:53AM +0100, Jonathan Cameron wrote:
> For the adc channel I'm not particularly keen on insisting every device
> have a unique name for every channel. That breaks the effort we went to
> in IIO to enforce consistent naming (for userspace interfaces) in the first
> place. To my mind it should never be anything other than a number.
I think you want something similar to what we do with platform devices -
have both a name and a number. For devices that are just a bunch of
symmetric channels (which seems to be the main case you're thinking of)
the name would always be the same and the number would vary but if the
device has a bunch of different functions then they'd be named. That
way you don't have to remember that the channels of a given type start
at offset X.
For example, on a PMIC you'll often have ADC channels wired up to
specific supplies plus some extras which are left for board use. The
fixed channels might get named after the supplies and the extras all
have the same name distinguished by number.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists