Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] iio: Documentation update for outputs / dac
@ 2011-01-12 10:40 Roland Stigge
  2011-01-12 12:06 ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Roland Stigge @ 2011-01-12 10:40 UTC (permalink / raw)
  To: linux-iio

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

Attached is the documentation update for iio outputs / dac.

[-- Attachment #2: iio-out-doc.patch --]
[-- Type: text/x-patch, Size: 1716 bytes --]

iio: Documentation update for outputs / dac

Signed-off-by: Roland Stigge <stigge@antcom.de>

diff --git a/drivers/staging/iio/Documentation/sysfs-bus-iio b/drivers/staging/iio/Documentation/sysfs-bus-iio
index 2dde97d..38b9813 100644
--- a/drivers/staging/iio/Documentation/sysfs-bus-iio
+++ b/drivers/staging/iio/Documentation/sysfs-bus-iio
@@ -168,6 +168,7 @@ Description:
 What:		/sys/bus/iio/devices/deviceX/inY_scale
 What:		/sys/bus/iio/devices/deviceX/inY_supply_scale
 What:		/sys/bus/iio/devices/deviceX/in_scale
+What:		/sys/bus/iio/devices/deviceX/outY_scale
 What:		/sys/bus/iio/devices/deviceX/accel_scale
 What:		/sys/bus/iio/devices/deviceX/accel_peak_scale
 What:		/sys/bus/iio/devices/deviceX/gyro_scale
@@ -222,6 +223,25 @@ Description:
 		If a discrete set of scale values are available, they
 		are listed in this attribute.
 
+What:		/sys/bus/iio/devices/deviceX/outY_raw
+KernelVersion:	2.6.37
+Contact:	linux-iio@vger.kernel.org
+Description:
+		Raw (unscaled, no bias etc.) output voltage for
+		channel Y. In special cases where the channel does not
+		correspond to externally available output one of the named
+		versions may be used. The number must always be specified and
+		unique if the output corresponds to a single channel.
+
+What:		/sys/bus/iio/devices/deviceX/outY&Z&..._raw
+KernelVersion:	2.6.37
+Contact:	linux-iio@vger.kernel.org
+Description:
+		Raw (unscaled, no bias etc.) output voltage for an aggregate of
+		channel Y, channel Z, etc.  This interface is available in cases
+		where a single output sets the value for multiple channels
+		simultaneously.
+
 What:		/sys/bus/iio/devices/deviceX/deviceX:eventY
 KernelVersion:	2.6.35
 Contact:	linux-iio@vger.kernel.org

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] iio: Documentation update for outputs / dac
  2011-01-12 10:40 [PATCH] iio: Documentation update for outputs / dac Roland Stigge
@ 2011-01-12 12:06 ` Jonathan Cameron
  2011-01-12 18:41   ` Roland Stigge
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Cameron @ 2011-01-12 12:06 UTC (permalink / raw)
  To: Roland Stigge; +Cc: linux-iio

On 01/12/11 10:40, Roland Stigge wrote:
> Attached is the documentation update for iio outputs / dac.
Hi Roland,

Any chance at all you can get git-send-email to work for you?
Saves me the step of pasting the attachment back into the email
every time!

More or less fine, couple of minor comments inline.

Thanks for doing this,

Jonathan
> iio: Documentation update for outputs / dac
> 
> Signed-off-by: Roland Stigge <stigge@antcom.de>
> 
> diff --git a/drivers/staging/iio/Documentation/sysfs-bus-iio b/drivers/staging/iio/Documentation/sysfs-bus-iio
> index 2dde97d..38b9813 100644
> --- a/drivers/staging/iio/Documentation/sysfs-bus-iio
> +++ b/drivers/staging/iio/Documentation/sysfs-bus-iio
> @@ -168,6 +168,7 @@ Description:
>  What:		/sys/bus/iio/devices/deviceX/inY_scale
>  What:		/sys/bus/iio/devices/deviceX/inY_supply_scale
>  What:		/sys/bus/iio/devices/deviceX/in_scale
> +What:		/sys/bus/iio/devices/deviceX/outY_scale
>  What:		/sys/bus/iio/devices/deviceX/accel_scale
>  What:		/sys/bus/iio/devices/deviceX/accel_peak_scale
>  What:		/sys/bus/iio/devices/deviceX/gyro_scale
> @@ -222,6 +223,25 @@ Description:
>  		If a discrete set of scale values are available, they
>  		are listed in this attribute.
>  
> +What:		/sys/bus/iio/devices/deviceX/outY_raw
> +KernelVersion:	2.6.37
> +Contact:	linux-iio@vger.kernel.org
> +Description:
> +		Raw (unscaled, no bias etc.) output voltage for
> +		channel Y. 

Get rid of this bit about named output. I'm not sure it makes sense to allow
this and I don't think we currently have an examples in tree.

> In special cases where the channel does not
> +		correspond to externally available output one of the named
> +		versions may be used. The number must always be specified and
> +		unique if the output corresponds to a single channel.
> +
> +What:		/sys/bus/iio/devices/deviceX/outY&Z&..._raw
Please avoid ... syntax, it makes it very difficult to search the file.
Just list the two case version
outY&Z_raw for now and we can document more advanced cases if they ever
show up as extra what entries.
> +KernelVersion:	2.6.37
> +Contact:	linux-iio@vger.kernel.org
> +Description:
> +		Raw (unscaled, no bias etc.) output voltage for an aggregate of
> +		channel Y, channel Z, etc.  This interface is available in cases
> +		where a single output sets the value for multiple channels
> +		simultaneously.
> +
>  What:		/sys/bus/iio/devices/deviceX/deviceX:eventY
>  KernelVersion:	2.6.35
>  Contact:	linux-iio@vger.kernel.org


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] iio: Documentation update for outputs / dac
  2011-01-12 12:06 ` Jonathan Cameron
@ 2011-01-12 18:41   ` Roland Stigge
  2011-01-13 11:03     ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Roland Stigge @ 2011-01-12 18:41 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: linux-iio

Hi,

On 01/12/2011 01:06 PM, Jonathan Cameron wrote:
> Any chance at all you can get git-send-email to work for you?
> Saves me the step of pasting the attachment back into the email
> every time!

Thanks for the hint. Will test with another patch. :-)

>> +What:		/sys/bus/iio/devices/deviceX/outY_raw
>> +KernelVersion:	2.6.37
>> +Contact:	linux-iio@vger.kernel.org
>> +Description:
>> +		Raw (unscaled, no bias etc.) output voltage for
>> +		channel Y. 
> 
> Get rid of this bit about named output. I'm not sure it makes sense to allow
> this and I don't think we currently have an examples in tree.

Do you mean we shouldn't document /sys/bus/iio/devices/deviceX/outY_raw
(which is quite analogous to inY_raw) but
/sys/bus/iio/devices/deviceX/outY_scale and
/sys/bus/iio/devices/deviceX/outY&Z_raw?

Or how did I get you wrong?

Thanks,

Roland

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] iio: Documentation update for outputs / dac
  2011-01-12 18:41   ` Roland Stigge
@ 2011-01-13 11:03     ` Jonathan Cameron
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2011-01-13 11:03 UTC (permalink / raw)
  To: Roland Stigge; +Cc: linux-iio

On 01/12/11 18:41, Roland Stigge wrote:
> Hi,
> 
> On 01/12/2011 01:06 PM, Jonathan Cameron wrote:
>> Any chance at all you can get git-send-email to work for you?
>> Saves me the step of pasting the attachment back into the email
>> every time!
> 
> Thanks for the hint. Will test with another patch. :-)
> 
>>> +What:		/sys/bus/iio/devices/deviceX/outY_raw
>>> +KernelVersion:	2.6.37
>>> +Contact:	linux-iio@vger.kernel.org
>>> +Description:
>>> +		Raw (unscaled, no bias etc.) output voltage for
>>> +		channel Y. 
>>
>> Get rid of this bit about named output. I'm not sure it makes sense to allow
>> this and I don't think we currently have an examples in tree.
> 
> Do you mean we shouldn't document /sys/bus/iio/devices/deviceX/outY_raw
> (which is quite analogous to inY_raw) but
> /sys/bus/iio/devices/deviceX/outY_scale and
> /sys/bus/iio/devices/deviceX/outY&Z_raw?
> 
No, the named bit for inputs is todo with inY_supply_raw etc
rather than the scale and compound versions both of which should
indeed be documented. I just mean remove the bit in the description
of outY_raw which refers to 'names'.  Basically get rid of 
' In special cases where the channel does not
  correspond to externally available output one of the named
  versions may be used.' as it doesn't apply to outputs. '

Any internal only output would be a somewhat odd beast.

Thanks,

Jonathan


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-13 10:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-12 10:40 [PATCH] iio: Documentation update for outputs / dac Roland Stigge
2011-01-12 12:06 ` Jonathan Cameron
2011-01-12 18:41   ` Roland Stigge
2011-01-13 11:03     ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox