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-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html