RE: [PATCH] staging: iio: ring_generic: provide IIO_CONST_ATTR_SCAN_EL_TYPE_WITH_SHIFT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonathan Cameron wrote on 2010-10-05:
> On 10/05/10 14:00, Michael Hennerich wrote:
>>
>> Signed-off-by: Michael Hennerich <michael.hennerich@xxxxxxxxxx>
> Acked-by: Jonathan Cameron <jic23@xxxxxxxxx>
>
> Send it to Greg with the first user... Also need to update the
> documentation in sysfs-bus-iio to cover this, but that can be a
> separate patch.
>
> Jonathan

Hi Jonathan,

I wonder why the documentation is specific to accel?
I think that can be many things...

What:           /sys/.../device[n]/buffer/scan_elements/accel[_x0]_type
KernelVersion:  2.6.37
Contact:        linux-iio@xxxxxxxxxxxxxxx
Description:
                Description of the scan element data storage within the buffer
                and hence the form in which it is read from userspace.
                Form is [s|u]bits/storagebits.  s or u specifies if signed
                (2's complement) or unsigned. bits is the number of bits of
                data and storagebits is the space (after padding) that it
                occupies in the buffer.  Note that some devices will have
                additional information in the unused bits so to get a clean
                value, the bits value must be used to mask the buffer output
                value appropriately.  The storagebits value also specifies the
                data alignment.  So s48/64 will be a signed 48 bit integer
                stored in a 64 bit location aligned to a a64 bit boundary.
                For other storage combinations this attribute will be extended
                appropriately.





Greetings,
Michael

Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 4036 Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif


--
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


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux